chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
resolve-host: use the usual log message when encountering a dbus parse failure
[elogind.git]
/
src
/
systemctl
/
systemctl.c
diff --git
a/src/systemctl/systemctl.c
b/src/systemctl/systemctl.c
index 599d5907478408e4910880c738dd6f86b0e65b01..4699a670f7791ee1bf2b9ea0f14daca19fbcfcc9 100644
(file)
--- a/
src/systemctl/systemctl.c
+++ b/
src/systemctl/systemctl.c
@@
-1142,7
+1142,7
@@
static usec_t calc_next_elapse(dual_timestamp *nw, dual_timestamp *next) {
assert(nw);
assert(next);
assert(nw);
assert(next);
- if (next->monotonic !=
(usec_t) -1
&& next->monotonic > 0) {
+ if (next->monotonic !=
USEC_INFINITY
&& next->monotonic > 0) {
usec_t converted;
if (next->monotonic > nw->monotonic)
usec_t converted;
if (next->monotonic > nw->monotonic)
@@
-1150,7
+1150,7
@@
static usec_t calc_next_elapse(dual_timestamp *nw, dual_timestamp *next) {
else
converted = nw->realtime - (nw->monotonic - next->monotonic);
else
converted = nw->realtime - (nw->monotonic - next->monotonic);
- if (next->realtime !=
(usec_t) -1
&& next->realtime > 0)
+ if (next->realtime !=
USEC_INFINITY
&& next->realtime > 0)
next_elapse = MIN(converted, next->realtime);
else
next_elapse = converted;
next_elapse = MIN(converted, next->realtime);
else
next_elapse = converted;