]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
timesyncd: use (void) to mark ignored value
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 20 Jan 2016 01:25:26 +0000 (20:25 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 20 Jan 2016 23:55:56 +0000 (18:55 -0500)
CID #1325772.

src/timesync/timesyncd-manager.c

index 8dca538b3bb2d2306466808eb10592705499f6c0..5627d17de1a89c449904ca5eab8af329b671326a 100644 (file)
@@ -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;