summary refs log tree commit diff
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2015-03-18 14:10:22 +0100
committerChristian Neukirchen <chneukirchen@gmail.com>2015-03-18 14:10:52 +0100
commit4cd69dc57f99d0741543cfd2f69631187dce3b22 (patch)
tree5b9a67b7867efd8f0488ba162d8861c16c0bff7e
parentb10756d64cc918f2dcb2db198cfe01cace851082 (diff)
downloadrunit-void-4cd69dc57f99d0741543cfd2f69631187dce3b22.tar.gz
runit-void-4cd69dc57f99d0741543cfd2f69631187dce3b22.tar.xz
runit-void-4cd69dc57f99d0741543cfd2f69631187dce3b22.zip
halt: don't violate POSIX namespace.
-rw-r--r--halt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/halt.c b/halt.c
index 90d5930..0405ced 100644
--- a/halt.c
+++ b/halt.c
@@ -6,13 +6,13 @@
 
 extern char *__progname;
 
-typedef enum {NOOP, HALT, REBOOT, POWEROFF} action_t;
+typedef enum {NOOP, HALT, REBOOT, POWEROFF} action_type;
 
 int main(int argc, char *argv[]) {
   int do_sync = 1;
   int do_force = 0;
   int opt;
-  action_t action = NOOP;
+  action_type action = NOOP;
 
   if (strcmp(__progname, "halt") == 0)
     action = HALT;