chiark / gitweb /
time-util: Rename and fix call of deserialize_timestamp_value()
[elogind.git] / src / login / logind-session.c
index accf83d5f110d341008696476e2be8d87732dcfa..ff2c95c55d60c3192bbbd36690dd2a1af773bcc0 100644 (file)
@@ -452,8 +452,10 @@ int session_load(Session *s) {
                 safe_close(fd);
         }
 
-        deserialize_timestamp_value(realtime, &s->timestamp.realtime);
-        deserialize_timestamp_value(monotonic, &s->timestamp.monotonic);
+        if (realtime)
+                timestamp_deserialize(realtime, &s->timestamp.realtime);
+        if (monotonic)
+                timestamp_deserialize(monotonic, &s->timestamp.monotonic);
 
         if (controller) {
                 if (bus_name_has_owner(s->manager->bus, controller, NULL) > 0)