@@ -118,31 +118,31 @@ impl WaitStatus {
118
118
}
119
119
120
120
fn exited ( status : i32 ) -> bool {
121
- unsafe { libc:: WIFEXITED ( status) }
121
+ libc:: WIFEXITED ( status)
122
122
}
123
123
124
124
fn exit_status ( status : i32 ) -> i32 {
125
- unsafe { libc:: WEXITSTATUS ( status) }
125
+ libc:: WEXITSTATUS ( status)
126
126
}
127
127
128
128
fn signaled ( status : i32 ) -> bool {
129
- unsafe { libc:: WIFSIGNALED ( status) }
129
+ libc:: WIFSIGNALED ( status)
130
130
}
131
131
132
132
fn term_signal ( status : i32 ) -> Result < Signal > {
133
- Signal :: try_from ( unsafe { libc:: WTERMSIG ( status) } )
133
+ Signal :: try_from ( libc:: WTERMSIG ( status) )
134
134
}
135
135
136
136
fn dumped_core ( status : i32 ) -> bool {
137
- unsafe { libc:: WCOREDUMP ( status) }
137
+ libc:: WCOREDUMP ( status)
138
138
}
139
139
140
140
fn stopped ( status : i32 ) -> bool {
141
- unsafe { libc:: WIFSTOPPED ( status) }
141
+ libc:: WIFSTOPPED ( status)
142
142
}
143
143
144
144
fn stop_signal ( status : i32 ) -> Result < Signal > {
145
- Signal :: try_from ( unsafe { libc:: WSTOPSIG ( status) } )
145
+ Signal :: try_from ( libc:: WSTOPSIG ( status) )
146
146
}
147
147
148
148
#[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
@@ -151,7 +151,7 @@ fn syscall_stop(status: i32) -> bool {
151
151
// of delivering SIGTRAP | 0x80 as the signal number for syscall
152
152
// stops. This allows easily distinguishing syscall stops from
153
153
// genuine SIGTRAP signals.
154
- unsafe { libc:: WSTOPSIG ( status) == libc:: SIGTRAP | 0x80 }
154
+ libc:: WSTOPSIG ( status) == libc:: SIGTRAP | 0x80
155
155
}
156
156
157
157
#[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
@@ -160,7 +160,7 @@ fn stop_additional(status: i32) -> c_int {
160
160
}
161
161
162
162
fn continued ( status : i32 ) -> bool {
163
- unsafe { libc:: WIFCONTINUED ( status) }
163
+ libc:: WIFCONTINUED ( status)
164
164
}
165
165
166
166
impl WaitStatus {
0 commit comments