diff options
author | Mathias Svensson <freaken@freaken.dk> | 2019-03-03 20:22:54 +0100 |
---|---|---|
committer | Mathias Svensson <freaken@freaken.dk> | 2019-03-03 20:22:54 +0100 |
commit | 457b0f9902964302a242bf33a16108414d2f13e1 (patch) | |
tree | 260efcd02aafc3fe89e96da6b932c7b714dfce67 | |
parent | 8d94e00051ad6d3e5563ddada294f7c31fd20e47 (diff) | |
download | rust-libc-457b0f9902964302a242bf33a16108414d2f13e1.tar.gz |
Set the type for S_ISUID, S_ISGID and S_ISVTX correctly
-rw-r--r-- | src/unix/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/unix/mod.rs b/src/unix/mod.rs index 15f7c7f2ea..e96eb51b1b 100644 --- a/src/unix/mod.rs +++ b/src/unix/mod.rs @@ -230,9 +230,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; |