]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(print_uptime): Use 0, not undefined errno in
authorJim Meyering <jim@meyering.net>
Mon, 15 Jul 1996 01:07:16 +0000 (01:07 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 15 Jul 1996 01:07:16 +0000 (01:07 +0000)
couldn't-get-boot-time diagnostic.  From Ulrich Drepper.

src/who-users.c

index f8b6659b6065422a2e48310080733e686e3fef50..1b78c1b4a6308f6a94cb2a775c084d7f60b8c712 100644 (file)
@@ -176,7 +176,7 @@ print_uptime (int n)
       ++this;
   }
   if (boot_time == 0)
-    error (1, errno, _("couldn't get boot time"));
+    error (1, 0, _("couldn't get boot time"));
   time_now = time (0);
   uptime = time_now - boot_time;
   updays = uptime / 86400;