Skip to content

Commit 5446faa

Browse files
author
Alexander Danilov
committed
Fix type + style fix style issues
1 parent 6a5dd50 commit 5446faa

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/unix/notbsd/linux/mod.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ s! {
233233
pub mr_ifindex: ::c_int,
234234
pub mr_type: ::c_ushort,
235235
pub mr_alen: ::c_ushort,
236-
pub mr_address: [::c_char; 8],
236+
pub mr_address: [::c_uchar; 8],
237237
}
238238

239239
pub struct cpu_set_t {
@@ -1307,7 +1307,6 @@ pub const CTRL_ATTR_MCAST_GRP_UNSPEC: ::c_int = 0;
13071307
pub const CTRL_ATTR_MCAST_GRP_NAME: ::c_int = 1;
13081308
pub const CTRL_ATTR_MCAST_GRP_ID: ::c_int = 2;
13091309

1310-
13111310
// linux/if_packet.h
13121311
pub const PACKET_ADD_MEMBERSHIP: ::c_int = 1;
13131312
pub const PACKET_DROP_MEMBERSHIP: ::c_int = 2;
@@ -1317,7 +1316,6 @@ pub const PACKET_MR_PROMISC: ::c_int = 1;
13171316
pub const PACKET_MR_ALLMULTI: ::c_int = 2;
13181317
pub const PACKET_MR_UNICAST: ::c_int = 3;
13191318

1320-
13211319
// linux/netfilter.h
13221320
pub const NF_DROP: ::c_int = 0;
13231321
pub const NF_ACCEPT: ::c_int = 1;

0 commit comments

Comments
 (0)