diff options
author | Lennart Poettering <lennart@poettering.net> | 2019-03-21 16:32:31 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2019-03-21 16:32:46 +0100 |
commit | 04f590a4a4c327a4ce5f75f22f98c8e3ce158799 (patch) | |
tree | e05cb11de4fae496a97736aa4df7f84c9b85caca /src/nspawn | |
parent | 6145bb4f78ce1f7259c746dab8b1fedb38352341 (diff) | |
download | systemd-04f590a4a4c327a4ce5f75f22f98c8e3ce158799.tar.gz systemd-04f590a4a4c327a4ce5f75f22f98c8e3ce158799.tar.bz2 systemd-04f590a4a4c327a4ce5f75f22f98c8e3ce158799.zip |
nspawn: voidify sd_notify() calls
Diffstat (limited to 'src/nspawn')
-rw-r--r-- | src/nspawn/nspawn.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c index c8a7226de0..11620c2a66 100644 --- a/src/nspawn/nspawn.c +++ b/src/nspawn/nspawn.c @@ -3616,11 +3616,11 @@ static int nspawn_dispatch_notify_fd(sd_event_source *source, int fd, uint32_t r return log_oom(); if (strv_find(tags, "READY=1")) - sd_notifyf(false, "READY=1\n"); + (void) sd_notifyf(false, "READY=1\n"); p = strv_find_startswith(tags, "STATUS="); if (p) - sd_notifyf(false, "STATUS=Container running: %s", p); + (void) sd_notifyf(false, "STATUS=Container running: %s", p); return 0; } @@ -4472,9 +4472,9 @@ static int run_container(int master, * will make them appear in getpwuid(), thus we can release the /etc/passwd lock. */ etc_passwd_lock = safe_close(etc_passwd_lock); - sd_notifyf(false, - "STATUS=Container running.\n" - "X_NSPAWN_LEADER_PID=" PID_FMT, *pid); + (void) sd_notifyf(false, + "STATUS=Container running.\n" + "X_NSPAWN_LEADER_PID=" PID_FMT, *pid); if (!arg_notify_ready) (void) sd_notify(false, "READY=1\n"); @@ -5010,9 +5010,9 @@ static int run(int argc, char *argv[]) { } finish: - sd_notify(false, - r == 0 && ret == EXIT_FORCE_RESTART ? "STOPPING=1\nSTATUS=Restarting..." : - "STOPPING=1\nSTATUS=Terminating..."); + (void) sd_notify(false, + r == 0 && ret == EXIT_FORCE_RESTART ? "STOPPING=1\nSTATUS=Restarting..." : + "STOPPING=1\nSTATUS=Terminating..."); if (pid > 0) (void) kill(pid, SIGKILL); |