clock-util: trivial clean-ups
This commit is contained in:
parent
66ad93e86d
commit
0d18259e0a
|
@ -151,9 +151,9 @@ int clock_apply_epoch(void) {
|
||||||
|
|
||||||
if (stat(EPOCH_FILE, &st) < 0) {
|
if (stat(EPOCH_FILE, &st) < 0) {
|
||||||
if (errno != ENOENT)
|
if (errno != ENOENT)
|
||||||
log_warning_errno(errno, "Cannot stat %s: %m\n", EPOCH_FILE);
|
log_warning_errno(errno, "Cannot stat " EPOCH_FILE ": %m");
|
||||||
|
|
||||||
epoch_usec = ((usec_t) TIME_EPOCH * USEC_PER_SEC);
|
epoch_usec = (usec_t) TIME_EPOCH * USEC_PER_SEC;
|
||||||
} else
|
} else
|
||||||
epoch_usec = timespec_load(&st.st_mtim);
|
epoch_usec = timespec_load(&st.st_mtim);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue