Skip to content

Commit

Permalink
fix NetBSD ptr
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveLauC committed Dec 9, 2023
1 parent 6cb1f7c commit eab2bf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sys/reboot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ cfg_if! {
#[cfg(target_os = "openbsd")]
unsafe { libc::reboot(how.bits()) };
#[cfg(target_os = "netbsd")]
unsafe { libc::reboot(how.bits(), std::ptr::null_mut().cast()) };
unsafe { libc::reboot(how.bits(), std::ptr::null_mut())) };

Err(Errno::last())
}
Expand Down

0 comments on commit eab2bf4

Please sign in to comment.