Add (void) where we don't care about return value

This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2015-03-15 17:26:58 -04:00
parent cc02a7b330
commit e62d9b8192
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -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();
+1 -1
View File
@@ -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. */
+2 -2
View File
@@ -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: