[hackers] [sinit] Style fix || sin
commit 73428b2daf892400348c71bfeda6c3092db91738
Author: sin <sin_AT_2f30.org>
Date: Thu Dec 4 15:03:45 2014 +0000
Style fix
diff --git a/sinit.c b/sinit.c
index e338f35..eb834f6 100644
--- a/sinit.c
+++ b/sinit.c
_AT_@ -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"
_AT_@ -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);
}
Received on Thu Dec 04 2014 - 16:03:51 CET
This archive was generated by hypermail 2.3.0
: Thu Dec 04 2014 - 16:12:09 CET