Skip to content

Commit 457b0f9

Browse files
Set the type for S_ISUID, S_ISGID and S_ISVTX correctly
1 parent 8d94e00 commit 457b0f9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/unix/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,9 +230,9 @@ pub const GRPQUOTA: ::c_int = 1;
230230

231231
pub const SIGIOT: ::c_int = 6;
232232

233-
pub const S_ISUID: ::c_int = 0x800;
234-
pub const S_ISGID: ::c_int = 0x400;
235-
pub const S_ISVTX: ::c_int = 0x200;
233+
pub const S_ISUID: ::mode_t = 0x800;
234+
pub const S_ISGID: ::mode_t = 0x400;
235+
pub const S_ISVTX: ::mode_t = 0x200;
236236

237237
pub const IF_NAMESIZE: ::size_t = 16;
238238
pub const IFNAMSIZ: ::size_t = IF_NAMESIZE;

0 commit comments

Comments
 (0)