summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2019-05-25 15:49:13 +0000
committerbors <bors@rust-lang.org>2019-05-25 15:49:13 +0000
commitae24e2210f91096b1520c3fefef1067d7996f12b (patch)
tree424a609bb2d56436876ffda04c08426de447f86f
parentc6306c1327437d83b90a54a9c151e5a75dcb87d0 (diff)
parent457b0f9902964302a242bf33a16108414d2f13e1 (diff)
downloadrust-libc-ae24e2210f91096b1520c3fefef1067d7996f12b.tar.gz
Auto merge of #503 - TethysSvensson:fix-mode, r=gnzlbg
Set the type for S_ISUID, S_ISGID and S_ISVTX correctly
-rw-r--r--src/unix/mod.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/unix/mod.rs b/src/unix/mod.rs
index 4e3306f941..3d98624e58 100644
--- a/src/unix/mod.rs
+++ b/src/unix/mod.rs
@@ -229,9 +229,9 @@ pub const GRPQUOTA: ::c_int = 1;
pub const SIGIOT: ::c_int = 6;
-pub const S_ISUID: ::c_int = 0x800;
-pub const S_ISGID: ::c_int = 0x400;
-pub const S_ISVTX: ::c_int = 0x200;
+pub const S_ISUID: ::mode_t = 0x800;
+pub const S_ISGID: ::mode_t = 0x400;
+pub const S_ISVTX: ::mode_t = 0x200;
pub const IF_NAMESIZE: ::size_t = 16;
pub const IFNAMSIZ: ::size_t = IF_NAMESIZE;