commit 9df30f628a3ac9bba5ae83df4d213ee7ef3d981e
parent 94fee76360b990d8aa19375420e9e09a73c1282b
Author: zerous Naveen Narayanan <zerous@nocebo.space>
Date: Wed, 30 Oct 2019 22:43:43 +0100
Style fix
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/slb.c b/slb.c
@@ -61,7 +61,7 @@ main(int argc, char **argv)
int t;
pid_t p;
- openlog("slb", LOG_PID | LOG_CONS, LOG_DAEMON);
+ openlog("slb", LOG_PID|LOG_CONS, LOG_DAEMON);
daemoninit();
for (;;) {
tpow = 0;
@@ -72,7 +72,8 @@ main(int argc, char **argv)
if (!pwread(ac) && (tpow < threshold)) {
if ((p = fork()) == -1) {
- syslog(LOG_DAEMON|LOG_ERR, "fork error for %s: %m", "slb.c");
+ syslog(LOG_DAEMON|LOG_ERR,
+ "fork error for %s: %m", "slb.c");
exit(1);
}
else if (p > 0) {
@@ -86,7 +87,6 @@ main(int argc, char **argv)
}
}
}
-
sleep(delay);
}