uptime: omit unnecessary #if

* 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.
This commit is contained in:
Paul Eggert committed 2011-02-14 21:05:55 -08:00
1 parent 0f56019db8
commit 43066fe2ca
1 file changed
-4
-4
View 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');