From: Alexander Kuleshov Date: Mon, 15 Feb 2016 18:04:09 +0000 (+0600) Subject: machine: use deserialize_timestamp_value() X-Git-Tag: v230~357^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8e1afa0a5dcb95da633acd5004a56bbfc9bf9423;p=thirdparty%2Fsystemd.git machine: use deserialize_timestamp_value() which is introduced in the ebf30a086dfa commit. --- diff --git a/src/machine/machine.c b/src/machine/machine.c index 406d5a4b854..7e92ffc4748 100644 --- a/src/machine/machine.c +++ b/src/machine/machine.c @@ -299,17 +299,8 @@ int machine_load(Machine *m) { m->class = c; } - if (realtime) { - unsigned long long l; - if (sscanf(realtime, "%llu", &l) > 0) - m->timestamp.realtime = l; - } - - if (monotonic) { - unsigned long long l; - if (sscanf(monotonic, "%llu", &l) > 0) - m->timestamp.monotonic = l; - } + deserialize_timestamp_value(realtime, &m->timestamp.realtime); + deserialize_timestamp_value(monotonic, &m->timestamp.monotonic); if (netif) { size_t allocated = 0, nr = 0;