summaryrefslogtreecommitdiff
path: root/src/machine/machine.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-08-06 16:48:17 +0300
committerLennart Poettering <lennart@poettering.net>2015-08-06 16:54:00 +0300
commit491ac9f2c4aeda8c40edde35112404b737e38b60 (patch)
tree55a5dded7bd23a9e079a92de97c3c7628494b3a3 /src/machine/machine.c
parent65d73cf042ba7de11d254f5c4714f467db64b7c3 (diff)
logind,machined: various smaller cleanups
Use mfree() where we can. Drop unnecessary {}. Drop unnecessary variable declarations. Cast syscall invocations where explicitly don't care for the return value to (void). Reword a comment.
Diffstat (limited to 'src/machine/machine.c')
-rw-r--r--src/machine/machine.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/machine/machine.c b/src/machine/machine.c
index ab26803683..4fd56a11ae 100644
--- a/src/machine/machine.c
+++ b/src/machine/machine.c
@@ -231,11 +231,11 @@ static void machine_unlink(Machine *m) {
char *sl;
sl = strjoina("/run/systemd/machines/unit:", m->unit);
- unlink(sl);
+ (void) unlink(sl);
}
if (m->state_file)
- unlink(m->state_file);
+ (void) unlink(m->state_file);
}
int machine_load(Machine *m) {