Skip to content

Commit 06abf3a

Browse files
committed
fix naming of _WSTATUS macro from wait.h
1 parent 71e9d6c commit 06abf3a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/unix/bsd/apple/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1032,20 +1032,20 @@ f! {
10321032
status >> 8
10331033
}
10341034

1035-
pub fn WSTATUS(status: ::c_int) -> ::c_int {
1035+
pub fn _WSTATUS(status: ::c_int) -> ::c_int {
10361036
status & 0x7f
10371037
}
10381038

10391039
pub fn WIFCONTINUED(status: ::c_int) -> bool {
1040-
WSTATUS(status) == _WSTOPPED && WSTOPSIG(status) == 0x13
1040+
_WSTATUS(status) == _WSTOPPED && WSTOPSIG(status) == 0x13
10411041
}
10421042

10431043
pub fn WIFSIGNALED(status: ::c_int) -> bool {
1044-
WSTATUS(status) != _WSTOPPED && WSTATUS(status) != 0
1044+
_WSTATUS(status) != _WSTOPPED && _WSTATUS(status) != 0
10451045
}
10461046

10471047
pub fn WIFSTOPPED(status: ::c_int) -> bool {
1048-
WSTATUS(status) == _WSTOPPED && WSTOPSIG(status) != 0x13
1048+
_WSTATUS(status) == _WSTOPPED && WSTOPSIG(status) != 0x13
10491049
}
10501050
}
10511051

0 commit comments

Comments
 (0)