summaryrefslogtreecommitdiff
path: root/src/who-users.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1996-07-15 01:07:16 +0000
committerJim Meyering <jim@meyering.net>1996-07-15 01:07:16 +0000
commit9c53920ae67f4662c9d8dd7606d39f395eab6f6b (patch)
tree57a8768a665e63df02a6b98450d76dbc17b795f6 /src/who-users.c
parent993b49a693e6cc2313c172140d3e17791a18f1f9 (diff)
downloadcoreutils-9c53920ae67f4662c9d8dd7606d39f395eab6f6b.tar.xz
(print_uptime): Use 0, not undefined errno in
couldn't-get-boot-time diagnostic. From Ulrich Drepper.
Diffstat (limited to 'src/who-users.c')
-rw-r--r--src/who-users.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/who-users.c b/src/who-users.c
index f8b6659b6..1b78c1b4a 100644
--- a/src/who-users.c
+++ b/src/who-users.c
@@ -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;