summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-03-09 18:16:20 +0100
committerLennart Poettering <lennart@poettering.net>2015-03-09 18:16:20 +0100
commitc011cc26696b18e5696e262063905d16369f74b3 (patch)
treef1ef6a3aa29cda87ad487508b283626a316009e8
parentb481de3b22fcd838a8f059aed8745375afdb9eca (diff)
fsckd: make use of safe_close()'s return value
-rw-r--r--src/fsckd/fsckd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/fsckd/fsckd.c b/src/fsckd/fsckd.c
index 834476c14a..9522fd7b62 100644
--- a/src/fsckd/fsckd.c
+++ b/src/fsckd/fsckd.c
@@ -122,8 +122,7 @@ static void remove_client(Client **first, Client *item) {
}
static void on_plymouth_disconnect(Manager *m) {
- safe_close(m->plymouth_fd);
- m->plymouth_fd = -1;
+ m->plymouth_fd = safe_close(m->plymouth_fd);
m->plymouth_cancel_sent = false;
}