diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-04-21 20:22:51 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-04-21 20:23:41 +0200 |
commit | e911de996a72af7659e4019f03b80f11c476f3f3 (patch) | |
tree | e2c114f7cf21a6a187110c08c24ed132e2ea5652 /src/shared/time-util.h | |
parent | f34beace377a6cce4e148182b434c6d975b0d012 (diff) |
core: make unit deserialization more defensive
Diffstat (limited to 'src/shared/time-util.h')
-rw-r--r-- | src/shared/time-util.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/time-util.h b/src/shared/time-util.h index fca8a4db9b..7a64d454a0 100644 --- a/src/shared/time-util.h +++ b/src/shared/time-util.h @@ -94,7 +94,7 @@ char *format_timestamp_relative(char *buf, size_t l, usec_t t); char *format_timespan(char *buf, size_t l, usec_t t, usec_t accuracy); void dual_timestamp_serialize(FILE *f, const char *name, dual_timestamp *t); -void dual_timestamp_deserialize(const char *value, dual_timestamp *t); +int dual_timestamp_deserialize(const char *value, dual_timestamp *t); int parse_timestamp(const char *t, usec_t *usec); |