chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
bus: properly parse NameOwnerChanged messages when caller explicitly wants to match...
[elogind.git]
/
src
/
shared
/
time-util.c
diff --git
a/src/shared/time-util.c
b/src/shared/time-util.c
index b29d8c6e4ee710cbba2e3e4512786001ea7c2eb6..55428c4ced93cd9a6a5ae37f37d56137c5053c71 100644
(file)
--- a/
src/shared/time-util.c
+++ b/
src/shared/time-util.c
@@
-158,7
+158,7
@@
char *format_timestamp(char *buf, size_t l, usec_t t) {
assert(buf);
assert(l > 0);
- if (t <= 0)
+ if (t <= 0
|| t == (usec_t) -1
)
return NULL;
sec = (time_t) (t / USEC_PER_SEC);
@@
-176,7
+176,7
@@
char *format_timestamp_us(char *buf, size_t l, usec_t t) {
assert(buf);
assert(l > 0);
- if (t <= 0)
+ if (t <= 0
|| t == (usec_t) -1
)
return NULL;
sec = (time_t) (t / USEC_PER_SEC);