diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-10-14 19:32:46 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-10-19 23:07:18 +0200 |
commit | ac5b0c13d8023745c0fbdaaa95dcec5b7b21d1e2 (patch) | |
tree | 8e9be0a69a09e5eda37d9ecfd141cd105ccaffd3 /src/timesync | |
parent | 4b4cb0a1ffbc63c6b40d4205f8e248108217e3dc (diff) | |
download | systemd-ac5b0c13d8023745c0fbdaaa95dcec5b7b21d1e2.tar.gz |
tree-wide: add more void casts for various syscall invocations
Diffstat (limited to 'src/timesync')
-rw-r--r-- | src/timesync/timesyncd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/timesync/timesyncd.c b/src/timesync/timesyncd.c index 3cb7d435cd..722b349b81 100644 --- a/src/timesync/timesyncd.c +++ b/src/timesync/timesyncd.c @@ -57,12 +57,12 @@ static int load_clock_timestamp(uid_t uid, gid_t gid) { /* Try to fix the access mode, so that we can still touch the file after dropping priviliges */ - fchmod(fd, 0644); - fchown(fd, uid, gid); + (void) fchmod(fd, 0644); + (void) fchown(fd, uid, gid); } else /* create stamp file with the compiled-in date */ - touch_file("/var/lib/systemd/clock", true, min, uid, gid, 0644); + (void) touch_file("/var/lib/systemd/clock", true, min, uid, gid, 0644); ct = now(CLOCK_REALTIME); if (ct < min) { @@ -150,7 +150,7 @@ int main(int argc, char *argv[]) { /* if we got an authoritative time, store it in the file system */ if (m->sync) - touch("/var/lib/systemd/clock"); + (void) touch("/var/lib/systemd/clock"); sd_event_get_exit_code(m->event, &r); |