summaryrefslogtreecommitdiff
path: root/src/shared/dropin.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-09-29 22:39:49 +0200
committerLennart Poettering <lennart@poettering.net>2015-09-30 12:23:32 +0200
commit45519fd6304aae453d95c6cf11bfc8539c38494c (patch)
treef2747501c14d00db43a4211ea2c66215cc338b76 /src/shared/dropin.c
parent68382f22d75a36e7f2d89ce9438654e9d6461709 (diff)
systemctl: various modernizations
Diffstat (limited to 'src/shared/dropin.c')
-rw-r--r--src/shared/dropin.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/shared/dropin.c b/src/shared/dropin.c
index 963d05d32e..1845068adb 100644
--- a/src/shared/dropin.c
+++ b/src/shared/dropin.c
@@ -78,7 +78,7 @@ int write_drop_in(const char *dir, const char *unit, unsigned level,
if (r < 0)
return r;
- mkdir_p(p, 0755);
+ (void) mkdir_p(p, 0755);
return write_string_file_atomic_label(q, data);
}
@@ -132,8 +132,7 @@ static int iterate_dir(
if (errno == ENOENT)
return 0;
- log_error_errno(errno, "Failed to open directory %s: %m", path);
- return -errno;
+ return log_error_errno(errno, "Failed to open directory %s: %m", path);
}
for (;;) {