mirror of
https://github.com/troglobit/finit.git
synced 2026-12-04 21:58:19 +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
3 files changed
+4
-2
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"
|
||||||
|
|||||||
@@ -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