projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f56019
)
uptime: omit unnecessary #if
author
Paul Eggert
<eggert@cs.ucla.edu>
Tue, 15 Feb 2011 05:05:18 +0000
(21:05 -0800)
committer
Paul 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
patch
|
blob
|
history
diff --git
a/src/uptime.c
b/src/uptime.c
index
7809e07
..
da8e4dd
100644
(file)
--- 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');