Misc. whitespace fixes, and comment

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson
2016-09-06 00:08:40 +02:00
parent 9fc1f50678
commit 2499405b27
4 changed files with 6 additions and 4 deletions
+1 -1
View File
@@ -98,7 +98,7 @@ static int usage(int rc)
{
fprintf(stderr, "Usage: %s [OPTIONS] [q | Q | 0-9]\n\n"
"Options:\n"
" -h, --help This help text\n\n"
" -h, --help This help text\n"
" -V, --version Show Finit version\n\n"
"Commands:\n"
" 0 Power-off the system, same as initctl poweroff\n"
+1 -1
View File
@@ -192,7 +192,7 @@ void logit(int prio, const char *fmt, ...)
fp = fopen("/dev/kmsg", "w");
if (fp) {
fprintf(fp, "<%d>finit[1]: ", LOG_DAEMON | prio);
fprintf(fp, "<%d>finit[1]:", LOG_DAEMON | prio);
vfprintf(fp, fmt, ap);
fclose(fp);
} else {
+2 -1
View File
@@ -51,7 +51,8 @@ static char *trim_ext(char *name)
if (name) {
ptr = strstr(name, ".so");
if (!ptr) ptr = strstr(name, ".c");
if (!ptr)
ptr = strstr(name, ".c");
if (ptr)
*ptr = 0;
}
+2 -1
View File
@@ -102,7 +102,8 @@ typedef struct svc {
inetd_t inetd;
int stdin_fd;
int log;
/* Set for services we need to redirect stdout/stderr to syslog */
int log;
/* Identity */
char username[MAX_USER_LEN];