summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2011-02-14 21:05:18 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2011-02-14 21:05:55 -0800
commit43066fe2cae42c16faa4f33596c8c7cf603b5b42 (patch)
tree57829663dd84aff1c7b69ec20e35ba45a4a5f553
parent0f56019db8d5a58e87adb61c7aab411113daf3c0 (diff)
downloadcoreutils-43066fe2cae42c16faa4f33596c8c7cf603b5b42.tar.xz
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.
-rw-r--r--src/uptime.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/uptime.c b/src/uptime.c
index 7809e0790..da8e4dd22 100644
--- a/src/uptime.c
+++ b/src/uptime.c
@@ -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');