From: Jim Meyering Date: Mon, 15 Jul 1996 01:07:16 +0000 (+0000) Subject: (print_uptime): Use 0, not undefined errno in X-Git-Tag: TEXTUTILS-1_19b~173 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9c53920ae67f4662c9d8dd7606d39f395eab6f6b;p=thirdparty%2Fcoreutils.git (print_uptime): Use 0, not undefined errno in couldn't-get-boot-time diagnostic. From Ulrich Drepper. --- diff --git a/src/who-users.c b/src/who-users.c index f8b6659b60..1b78c1b4a6 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;