summaryrefslogtreecommitdiff
path: root/src/uptime.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2002-08-30 23:04:53 +0000
committerJim Meyering <jim@meyering.net>2002-08-30 23:04:53 +0000
commit74887031996e79df07dae9711f08d80839b31e62 (patch)
treed249c7ea293b5540ca108f3b40733401544b29ba /src/uptime.c
parent6c80ecd8d5d3a0642f8cf321f9750f50314ea939 (diff)
downloadcoreutils-74887031996e79df07dae9711f08d80839b31e62.tar.xz
Change `error (1, ...' to `error (EXIT_FAILURE, ...'.
Diffstat (limited to 'src/uptime.c')
-rw-r--r--src/uptime.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/uptime.c b/src/uptime.c
index 5c644c4c0..a2468e319 100644
--- a/src/uptime.c
+++ b/src/uptime.c
@@ -126,7 +126,7 @@ print_uptime (int n, const STRUCT_UTMP *this)
#endif
{
if (boot_time == 0)
- error (1, errno, _("couldn't get boot time"));
+ error (EXIT_FAILURE, errno, _("couldn't get boot time"));
uptime = time_now - boot_time;
}
updays = uptime / 86400;
@@ -175,7 +175,7 @@ uptime (const char *filename)
int fail = read_utmp (filename, &n_users, &utmp_buf);
if (fail)
- error (1, errno, "%s", filename);
+ error (EXIT_FAILURE, errno, "%s", filename);
print_uptime (n_users, utmp_buf);
}