machine-id-setup: use path_kill_slashes and modernizations

This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2014-03-14 09:31:34 -04:00
parent cb44f25c12
commit fe970a8a30
3 changed files with 12 additions and 11 deletions
+2 -2
View File
@@ -37,7 +37,7 @@ static int help(void) {
"Initialize /etc/machine-id from a random source.\n\n"
" -h --help Show this help\n"
" --version Show package version\n"
" --root Filesystem root\n",
" --root=ROOT Filesystem root\n",
program_invocation_short_name);
return 0;
@@ -87,7 +87,7 @@ static int parse_argv(int argc, char *argv[]) {
}
if (optind < argc) {
help();
log_error("Extraneous arguments");
return -EINVAL;
}