X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fsystemctl.c;h=372b3d0ca662adeeaba24d5cbc4b541bf4c89f43;hp=9316ad073a37727cbad4cc7d3b1f3287e1c534be;hb=1fc7633598538fc5005e679da9ae5ce042376029;hpb=da8f9f8cff32029c74e9e566435079b2c5db0a5e diff --git a/src/systemctl.c b/src/systemctl.c index 9316ad073..372b3d0ca 100644 --- a/src/systemctl.c +++ b/src/systemctl.c @@ -258,7 +258,7 @@ static void warn_wall(enum action action) { } if (*p) { - utmp_wall(p); + utmp_wall(p, NULL); free(p); return; } @@ -269,7 +269,7 @@ static void warn_wall(enum action action) { if (!table[action]) return; - utmp_wall(table[action]); + utmp_wall(table[action], NULL); } struct unit_info { @@ -1820,9 +1820,9 @@ static void print_status_info(UnitStatusInfo *i) { if (i->sysfs_path) printf("\t Device: %s\n", i->sysfs_path); - else if (i->where) + if (i->where) printf("\t Where: %s\n", i->where); - else if (i->what) + if (i->what) printf("\t What: %s\n", i->what); if (i->accept) @@ -4047,7 +4047,7 @@ static int systemctl_help(void) { " pending\n" " -q --quiet Suppress output\n" " --no-block Do not wait until operation finished\n" - " --system Connect to system bus\n" + " --system Connect to system bus\n" " --session Connect to session bus\n" " --order When generating graph for dot, show only order\n" " --require When generating graph for dot, show only requirement\n"