X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fshutdownd.c;h=143fa8d825feca845e2e998476f9ae1c2910e76b;hp=bf69fb53673b859c4777c8c8e822a2128f24ff80;hb=7af53310dd9154ba76be7808292d9a046b849e43;hpb=ef9ffbd8065b9e06ef27fb989b1c783daf4dc1df diff --git a/src/shutdownd.c b/src/shutdownd.c index bf69fb536..143fa8d82 100644 --- a/src/shutdownd.c +++ b/src/shutdownd.c @@ -108,7 +108,7 @@ static void warn_wall(usec_t n, struct shutdownd_command *c) { return; if (c->wall_message[0]) - utmp_wall(c->wall_message); + utmp_wall(c->wall_message, NULL); else { char date[FORMAT_TIMESTAMP_MAX]; const char* prefix; @@ -126,7 +126,7 @@ static void warn_wall(usec_t n, struct shutdownd_command *c) { if (asprintf(&l, "%s%s!", prefix, format_timestamp(date, sizeof(date), c->elapse)) < 0) log_error("Failed to allocate wall message"); else { - utmp_wall(l); + utmp_wall(l, NULL); free(l); } }