diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2011-02-14 21:05:18 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2011-02-14 21:05:55 -0800 |
commit | 43066fe2cae42c16faa4f33596c8c7cf603b5b42 (patch) | |
tree | 57829663dd84aff1c7b69ec20e35ba45a4a5f553 /src | |
parent | 0f56019db8d5a58e87adb61c7aab411113daf3c0 (diff) | |
download | coreutils-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.
Diffstat (limited to 'src')
-rw-r--r-- | src/uptime.c | 4 |
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'); |