summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/uptime.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/uptime.c b/src/uptime.c
index 0449c6d56..cb3dcf0f8 100644
--- a/src/uptime.c
+++ b/src/uptime.c
@@ -111,7 +111,11 @@ print_uptime (size_t n, const STRUCT_UTMP *this)
boot_time = UT_TIME_MEMBER (this);
++this;
}
+#else
+ (void) n;
+ (void) this;
#endif
+
time_now = time (NULL);
#if defined HAVE_PROC_UPTIME
if (uptime == 0)