diff options
author | sin <sin@2f30.org> | 2014-12-04 15:03:45 +0000 |
---|---|---|
committer | sin <sin@2f30.org> | 2014-12-04 15:03:45 +0000 |
commit | 73428b2daf892400348c71bfeda6c3092db91738 (patch) | |
tree | 139a9685dd16802755b8d5982e8b1bb117204f88 | |
parent | 20bae3a21d90690fa32355a91d7833ba743a96cd (diff) |
Style fix
-rw-r--r-- | sinit.c | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -9,18 +9,18 @@ #define LEN(x) (sizeof (x) / sizeof *(x)) -static void sigpoweroff(void); -static void sigreap(void); -static void sigreboot(void); +static void poweroff(void); +static void reap(void); +static void reboot(void); static void spawn(char *const []); static struct { int sig; void (*handler)(void); } sigmap[] = { - { SIGUSR1, sigpoweroff }, - { SIGCHLD, sigreap }, - { SIGINT, sigreboot }, + { SIGUSR1, poweroff }, + { SIGCHLD, reap }, + { SIGINT, reboot }, }; #include "config.h" @@ -53,20 +53,20 @@ main(void) } static void -sigpoweroff(void) +poweroff(void) { spawn(rcpoweroffcmd); } static void -sigreap(void) +reap(void) { while (waitpid(-1, NULL, WNOHANG) > 0) ; } static void -sigreboot(void) +reboot(void) { spawn(rcrebootcmd); } |