summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2009-09-22 08:01:44 +0100
committerPádraig Brady <P@draigBrady.com>2009-09-22 12:21:00 +0100
commit7a404d10f5a7b2f2e80b8f10c71aadf0ab46812f (patch)
treebc2a03b5eebedf0becb22a14848805d9ecb7e9fe /src
parent8c92bb3441c628fe87ccf4a946b1c8b14cb0a0d2 (diff)
downloadcoreutils-7a404d10f5a7b2f2e80b8f10c71aadf0ab46812f.tar.xz
maint: uptime: fix a theoretical compile warning
* src/uptime.c (print_uptime) [!HAVE_UTMPX_H && !HAVE_UTMP_H]: Reference possibly unused arguments.
Diffstat (limited to 'src')
-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)