Rename all raw pointers as necessary
This commit is contained in:
parent
2823be08b7
commit
0dfc90ab15
223 changed files with 1800 additions and 1666 deletions
|
@ -104,7 +104,7 @@ mod imp {
|
|||
l_sysid: 0,
|
||||
};
|
||||
let ret = unsafe {
|
||||
libc::fcntl(fd, os::F_SETLKW, &flock as *os::flock)
|
||||
libc::fcntl(fd, os::F_SETLKW, &flock as *const os::flock)
|
||||
};
|
||||
if ret == -1 {
|
||||
unsafe { libc::close(fd); }
|
||||
|
@ -125,7 +125,7 @@ mod imp {
|
|||
l_sysid: 0,
|
||||
};
|
||||
unsafe {
|
||||
libc::fcntl(self.fd, os::F_SETLK, &flock as *os::flock);
|
||||
libc::fcntl(self.fd, os::F_SETLK, &flock as *const os::flock);
|
||||
libc::close(self.fd);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue