summaryrefslogtreecommitdiff
path: root/src/service.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-07-07 17:42:06 +0200
committerLennart Poettering <lennart@poettering.net>2010-07-07 17:42:06 +0200
commitaf2ab1f9a30a3a2897ee8d0991467ae61bb7cba0 (patch)
treeff7319d172be24bc4f42a8dc04a34454974ee07d /src/service.c
parent8f75a603ec833a07a9d9d05782713807297c0c53 (diff)
service: fix parsing word size functions
Diffstat (limited to 'src/service.c')
-rw-r--r--src/service.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/service.c b/src/service.c
index 3bc56d0239..6abc2240b2 100644
--- a/src/service.c
+++ b/src/service.c
@@ -2085,28 +2085,28 @@ static int service_deserialize_item(Unit *u, const char *key, const char *value,
} else if (streq(key, "main-exec-status-start-realtime")) {
uint64_t k;
- if ((r = safe_atollu(value, &k)) < 0)
+ if ((r = safe_atou64(value, &k)) < 0)
log_debug("Failed to parse main-exec-status-start-realtime value %s", value);
else
s->main_exec_status.start_timestamp.realtime = (usec_t) k;
} else if (streq(key, "main-exec-status-start-monotonic")) {
uint64_t k;
- if ((r = safe_atollu(value, &k)) < 0)
+ if ((r = safe_atou64(value, &k)) < 0)
log_debug("Failed to parse main-exec-status-start-monotonic value %s", value);
else
s->main_exec_status.start_timestamp.monotonic = (usec_t) k;
} else if (streq(key, "main-exec-status-exit-realtime")) {
uint64_t k;
- if ((r = safe_atollu(value, &k)) < 0)
+ if ((r = safe_atou64(value, &k)) < 0)
log_debug("Failed to parse main-exec-status-exit-realtime value %s", value);
else
s->main_exec_status.exit_timestamp.realtime = (usec_t) k;
} else if (streq(key, "main-exec-status-exit-monotonic")) {
uint64_t k;
- if ((r = safe_atollu(value, &k)) < 0)
+ if ((r = safe_atou64(value, &k)) < 0)
log_debug("Failed to parse main-exec-status-exit-monotonic value %s", value);
else
s->main_exec_status.exit_timestamp.monotonic = (usec_t) k;