]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core: use DUAL_TIMESTAMP_NULL to reset kernel_timestamp 2771/head
authorAlexander Kuleshov <kuleshovmail@gmail.com>
Mon, 29 Feb 2016 12:56:57 +0000 (18:56 +0600)
committerAlexander Kuleshov <kuleshovmail@gmail.com>
Mon, 29 Feb 2016 12:56:57 +0000 (18:56 +0600)
instead of direct reset of kernel_timestamp fields.

src/core/main.c

index b4e96fd6f427a16340e7e5829044b420c92c20ae..00ec8dac032c97081338b642af85a59fd2278ca0 100644 (file)
@@ -1435,9 +1435,7 @@ int main(int argc, char *argv[]) {
 
                 /* clear the kernel timestamp,
                  * because we are in a container */
-                kernel_timestamp.monotonic = 0ULL;
-                kernel_timestamp.realtime = 0ULL;
-
+                kernel_timestamp = DUAL_TIMESTAMP_NULL;
         } else {
                 /* Running as user instance */
                 arg_running_as = MANAGER_USER;