summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Danilov <al.danilov@corp.mail.ru>2018-07-06 18:40:46 +0300
committerAlexander Danilov <al.danilov@corp.mail.ru>2018-07-06 18:40:46 +0300
commit5446faa3c5c4292fa9135208146bbb07fcc235ea (patch)
tree0a30bc76e3d54c514d9a06ce6190f6c60da4cd9f
parent6a5dd502f00dc7504c9cb9627f17fadd100063f9 (diff)
downloadrust-libc-5446faa3c5c4292fa9135208146bbb07fcc235ea.tar.gz
Fix type + style fix style issues
-rw-r--r--src/unix/notbsd/linux/mod.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/unix/notbsd/linux/mod.rs b/src/unix/notbsd/linux/mod.rs
index f02076abec..a71df7f575 100644
--- a/src/unix/notbsd/linux/mod.rs
+++ b/src/unix/notbsd/linux/mod.rs
@@ -233,7 +233,7 @@ s! {
pub mr_ifindex: ::c_int,
pub mr_type: ::c_ushort,
pub mr_alen: ::c_ushort,
- pub mr_address: [::c_char; 8],
+ pub mr_address: [::c_uchar; 8],
}
pub struct cpu_set_t {
@@ -1307,7 +1307,6 @@ pub const CTRL_ATTR_MCAST_GRP_UNSPEC: ::c_int = 0;
pub const CTRL_ATTR_MCAST_GRP_NAME: ::c_int = 1;
pub const CTRL_ATTR_MCAST_GRP_ID: ::c_int = 2;
-
// linux/if_packet.h
pub const PACKET_ADD_MEMBERSHIP: ::c_int = 1;
pub const PACKET_DROP_MEMBERSHIP: ::c_int = 2;
@@ -1317,7 +1316,6 @@ pub const PACKET_MR_PROMISC: ::c_int = 1;
pub const PACKET_MR_ALLMULTI: ::c_int = 2;
pub const PACKET_MR_UNICAST: ::c_int = 3;
-
// linux/netfilter.h
pub const NF_DROP: ::c_int = 0;
pub const NF_ACCEPT: ::c_int = 1;