mirror of
https://github.com/troglobit/finit.git
synced 2026-10-01 05:22:48 +07:00
Misc. whitespace fixes, and comment
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user