diff options
author | Sergey Bugaev <bugaevc@gmail.com> | 2016-07-14 14:56:21 +0300 |
---|---|---|
committer | Sergey Bugaev <bugaevc@gmail.com> | 2016-07-14 14:56:21 +0300 |
commit | 215f3872b1ead677e5f942f86e334db5f01a4eb3 (patch) | |
tree | 89c72fcf41c3846f4dc50bc4b1ac94f9c3067d33 /src | |
parent | 8f6b162fb189d092afc7e6a6162e00d5d5332f4a (diff) | |
download | nix-215f3872b1ead677e5f942f86e334db5f01a4eb3.zip |
Name enum variants after the libc constants
Diffstat (limited to 'src')
-rw-r--r-- | src/sys/reboot.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/sys/reboot.rs b/src/sys/reboot.rs index d593ee78..94f30f62 100644 --- a/src/sys/reboot.rs +++ b/src/sys/reboot.rs @@ -12,12 +12,12 @@ use std::mem::drop; #[repr(i32)] #[derive(Clone, Copy, Debug, Eq, PartialEq)] pub enum RebootMode { - Halt = libc::RB_HALT_SYSTEM, - kexec = libc::RB_KEXEC, - PowerOff = libc::RB_POWER_OFF, - Restart = libc::RB_AUTOBOOT, + RB_HALT_SYSTEM = libc::RB_HALT_SYSTEM, + RB_KEXEC = libc::RB_KEXEC, + RB_POWER_OFF = libc::RB_POWER_OFF, + RB_AUTOBOOT = libc::RB_AUTOBOOT, // we do not support Restart2, - Suspend = libc::RB_SW_SUSPEND, + RB_SW_SUSPEND = libc::RB_SW_SUSPEND, } pub fn reboot(how: RebootMode) -> Result<Void> { |