Misc. whitespace fixes, and comment

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2016-09-06 00:08:40 +02:00
1 parent 9fc1f50678
commit 2499405b27
3 files changed
+4 -2

No files matched your search

+1 -1
View File
@@ -98,7 +98,7 @@ static int usage(int rc)
{ {
fprintf(stderr, "Usage: %s [OPTIONS] [q | Q | 0-9]\n\n" fprintf(stderr, "Usage: %s [OPTIONS] [q | Q | 0-9]\n\n"
"Options:\n" "Options:\n"
" -h, --help This help text\n\n" " -h, --help This help text\n"
" -V, --version Show Finit version\n\n" " -V, --version Show Finit version\n\n"
"Commands:\n" "Commands:\n"
" 0 Power-off the system, same as initctl poweroff\n" " 0 Power-off the system, same as initctl poweroff\n"
+2 -1
View File
@@ -51,7 +51,8 @@ static char *trim_ext(char *name)
if (name) { if (name) {
ptr = strstr(name, ".so"); ptr = strstr(name, ".so");
if (!ptr) ptr = strstr(name, ".c"); if (!ptr)
ptr = strstr(name, ".c");
if (ptr) if (ptr)
*ptr = 0; *ptr = 0;
} }
+1
View File
@@ -102,6 +102,7 @@ typedef struct svc {
inetd_t inetd; inetd_t inetd;
int stdin_fd; int stdin_fd;
/* Set for services we need to redirect stdout/stderr to syslog */
int log; int log;
/* Identity */ /* Identity */