summaryrefslogtreecommitdiff
path: root/src/timesync/timesyncd-manager.c
diff options
context:
space:
mode:
authorDaniel Mack <github@zonque.org>2016-01-21 11:50:08 +0100
committerDaniel Mack <github@zonque.org>2016-01-21 11:50:08 +0100
commit9ecbcdffdf15bb76f57e8c403070dd43e206858d (patch)
tree421146d2e57a799d6ee8e62f3f80bcf4eba87885 /src/timesync/timesyncd-manager.c
parent5c9ddf7ff49a89639e0d7fe86022f5f125803f45 (diff)
parent2a836ca9703689ba05513c98fb293b91a186a9ac (diff)
Merge pull request #2391 from keszybz/coverity
Coverity inspired fixes
Diffstat (limited to 'src/timesync/timesyncd-manager.c')
-rw-r--r--src/timesync/timesyncd-manager.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/timesync/timesyncd-manager.c b/src/timesync/timesyncd-manager.c
index 8dca538b3b..5627d17de1 100644
--- a/src/timesync/timesyncd-manager.c
+++ b/src/timesync/timesyncd-manager.c
@@ -372,7 +372,8 @@ static int manager_adjust_clock(Manager *m, double offset, int leap_sec) {
if (r < 0)
return -errno;
- touch("/var/lib/systemd/clock");
+ /* If touch fails, there isn't much we can do. Maybe it'll work next time. */
+ (void) touch("/var/lib/systemd/clock");
m->drift_ppm = tmx.freq / 65536;