diff options
Diffstat (limited to 'src/uptime.c')
-rw-r--r-- | src/uptime.c | 4 |
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); } |