Skip to content

Commit

Permalink
Remove unnecessary unsafe block
Browse files Browse the repository at this point in the history
Removes a compilation warning
  • Loading branch information
Bryant Mairs committed Dec 7, 2017
1 parent b080eb5 commit 6cf652e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/unix/bsd/netbsdlike/netbsd/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -910,7 +910,7 @@ pub const SOCK_NONBLOCK: ::c_int = 0x20000000;
// http://cvsweb.netbsd.org/bsdweb.cgi/src/include/dirent.h?rev=1.36
f! {
pub fn dirfd(dirp: *mut ::DIR) -> ::c_int {
unsafe { *(dirp as *const ::c_int) }
*(dirp as *const ::c_int)
}

pub fn WIFCONTINUED(status: ::c_int) -> bool {
Expand Down

0 comments on commit 6cf652e

Please sign in to comment.