From 457b0f9902964302a242bf33a16108414d2f13e1 Mon Sep 17 00:00:00 2001 From: Mathias Svensson Date: Sun, 3 Mar 2019 20:22:54 +0100 Subject: Set the type for S_ISUID, S_ISGID and S_ISVTX correctly --- src/unix/mod.rs | 6 +++--- 1 file 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; -- cgit v1.2.1