all: warn on unsafe-op-in-unsafe-fn
This commit is contained in:
parent
ce7488aa86
commit
73a6e0d5c2
25 changed files with 435 additions and 340 deletions
|
|
@ -23,7 +23,7 @@ use {
|
|||
pub unsafe fn ioctl<T>(fd: c::c_int, request: c::c_ulong, t: &mut T) -> Result<c::c_int, OsError> {
|
||||
let mut ret;
|
||||
loop {
|
||||
ret = c::ioctl(fd, request, &mut *t);
|
||||
ret = unsafe { c::ioctl(fd, request, &mut *t) };
|
||||
if ret != -1 {
|
||||
return Ok(ret);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue