]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
maint: uptime: fix a theoretical compile warning
authorPádraig Brady <P@draigBrady.com>
Tue, 22 Sep 2009 07:01:44 +0000 (08:01 +0100)
committerPádraig Brady <P@draigBrady.com>
Tue, 22 Sep 2009 11:21:00 +0000 (12:21 +0100)
* src/uptime.c (print_uptime) [!HAVE_UTMPX_H && !HAVE_UTMP_H]:
Reference possibly unused arguments.

src/uptime.c

index 0449c6d56489fab8769932b03ae996404a120514..cb3dcf0f8d281db0c75a9beb956290ded9325aee 100644 (file)
@@ -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)