From e62d9b81926e22f7a1d8a117fd85bb735d3cead2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Sun, 15 Mar 2015 17:17:24 -0400 Subject: Add (void) where we don't care about return value --- src/core/main.c | 2 +- src/libsystemd/sd-resolve/sd-resolve.c | 2 +- src/machine/machine.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/core/main.c b/src/core/main.c index 3ec70f981..2d393deb9 100644 --- a/src/core/main.c +++ b/src/core/main.c @@ -156,7 +156,7 @@ noreturn static void crash(int sig) { setrlimit(RLIMIT_CORE, &rl); /* Just to be sure... */ - chdir("/"); + (void) chdir("/"); /* Raise the signal again */ pid = raw_getpid(); diff --git a/src/libsystemd/sd-resolve/sd-resolve.c b/src/libsystemd/sd-resolve/sd-resolve.c index 8aec75aa4..b0dc82259 100644 --- a/src/libsystemd/sd-resolve/sd-resolve.c +++ b/src/libsystemd/sd-resolve/sd-resolve.c @@ -653,7 +653,7 @@ static void resolve_free(sd_resolve *resolve) { /* Send one termination packet for each worker */ for (i = 0; i < resolve->n_valid_workers; i++) - send(resolve->fds[REQUEST_SEND_FD], &req, req.length, MSG_NOSIGNAL); + (void) send(resolve->fds[REQUEST_SEND_FD], &req, req.length, MSG_NOSIGNAL); } /* Now terminate them and wait until they are gone. */ diff --git a/src/machine/machine.c b/src/machine/machine.c index 182430d78..048607fb7 100644 --- a/src/machine/machine.c +++ b/src/machine/machine.c @@ -212,9 +212,9 @@ int machine_save(Machine *m) { /* Create a symlink from the unit name to the machine * name, so that we can quickly find the machine for - * each given unit */ + * each given unit. Ignore error. */ sl = strjoina("/run/systemd/machines/unit:", m->unit); - symlink(m->name, sl); + (void) symlink(m->name, sl); } finish: -- cgit v1.2.3