uptime: omit unnecessary #if
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 15 Feb 2011 05:05:18 +0000 (21:05 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 15 Feb 2011 05:05:55 +0000 (21:05 -0800)
* src/uptime.c (print_uptime): Omit unnecessary "#if defined
HAVE_GETLOADAVG || defined C_GETLOADAVG".  This #if is always
true, and removing it will help us simplify the gnulib getloadavg
module.

src/uptime.c

index 7809e07..da8e4dd 100644 (file)
@@ -151,11 +151,7 @@ print_uptime (size_t n, const STRUCT_UTMP *this)
   printf (ngettext ("%lu user", "%lu users", entries),
           (unsigned long int) entries);
 
-#if defined HAVE_GETLOADAVG || defined C_GETLOADAVG
   loads = getloadavg (avg, 3);
-#else
-  loads = -1;
-#endif
 
   if (loads == -1)
     putchar ('\n');