mirror of
https://github.com/troglobit/finit.git
synced 2026-11-14 19:03:16 +00:00
Misc. whitespace fixes, and comment
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
9fc1f50678
commit
2499405b27
4 files changed
+6
-4
No files matched your search
@@ -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"
|
||||||
|
|||||||
@@ -192,7 +192,7 @@ void logit(int prio, const char *fmt, ...)
|
|||||||
|
|
||||||
fp = fopen("/dev/kmsg", "w");
|
fp = fopen("/dev/kmsg", "w");
|
||||||
if (fp) {
|
if (fp) {
|
||||||
fprintf(fp, "<%d>finit[1]: ", LOG_DAEMON | prio);
|
fprintf(fp, "<%d>finit[1]:", LOG_DAEMON | prio);
|
||||||
vfprintf(fp, fmt, ap);
|
vfprintf(fp, fmt, ap);
|
||||||
fclose(fp);
|
fclose(fp);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user