summaryrefslogtreecommitdiff
path: root/src/sys/reboot.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/sys/reboot.rs')
-rw-r--r--src/sys/reboot.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sys/reboot.rs b/src/sys/reboot.rs
index e3191306..5b376824 100644
--- a/src/sys/reboot.rs
+++ b/src/sys/reboot.rs
@@ -26,7 +26,7 @@ pub fn reboot(how: RebootMode) -> Result<Infallible> {
unsafe {
libc::reboot(how as libc::c_int)
};
- Err(Error::Sys(Errno::last()))
+ Err(Error::from(Errno::last()))
}
/// Enable or disable the reboot keystroke (Ctrl-Alt-Delete).