summaryrefslogtreecommitdiff
path: root/src/machine/machine.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-02-16 00:05:20 +0100
committerLennart Poettering <lennart@poettering.net>2016-02-16 00:05:20 +0100
commit6043679c6ec485a96926f07c26d77f2c0c246fe2 (patch)
treee38fdd2dd906b9b2eb53d7ec7f1ffa1aa9cd550c /src/machine/machine.c
parenta6b8530aecfa4df0debb0dd89ed089053d3fc926 (diff)
parentb895a7353b739e7186f6f51f3a415485b5afd80f (diff)
Merge pull request #2628 from benjarobin/fix-pull-req-2611
time-util: Rename and fix call of deserialize_timestamp_value()
Diffstat (limited to 'src/machine/machine.c')
-rw-r--r--src/machine/machine.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/machine/machine.c b/src/machine/machine.c
index 7e92ffc474..7a7a1bb42b 100644
--- a/src/machine/machine.c
+++ b/src/machine/machine.c
@@ -299,8 +299,10 @@ int machine_load(Machine *m) {
m->class = c;
}
- deserialize_timestamp_value(realtime, &m->timestamp.realtime);
- deserialize_timestamp_value(monotonic, &m->timestamp.monotonic);
+ if (realtime)
+ timestamp_deserialize(realtime, &m->timestamp.realtime);
+ if (monotonic)
+ timestamp_deserialize(monotonic, &m->timestamp.monotonic);
if (netif) {
size_t allocated = 0, nr = 0;