Introduction
Introduction Statistics Contact Development Disclaimer Help
Style fix - sinit - suckless init
git clone git://git.suckless.org/sinit
Log
Files
Refs
README
LICENSE
---
commit 73428b2daf892400348c71bfeda6c3092db91738
parent 20bae3a21d90690fa32355a91d7833ba743a96cd
Author: sin <[email protected]>
Date: Thu, 4 Dec 2014 15:03:45 +0000
Style fix
Diffstat:
M sinit.c | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/sinit.c b/sinit.c
@@ -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);
}
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.