Skip to content

Commit 890a903

Browse files
authored
Rollup merge of rust-lang#503 - Idolf:fix-mode, r=gnzlbg
Set the type for S_ISUID, S_ISGID and S_ISVTX correctly
2 parents c6306c1 + 457b0f9 commit 890a903

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/unix/mod.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -229,9 +229,9 @@ pub const GRPQUOTA: ::c_int = 1;
229229

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

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

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

0 commit comments

Comments
 (0)