I pushed this one as obvious:

>From 7195a3a9775db6f249ebfaa7df4bf79e17421a3d Mon Sep 17 00:00:00 2001
From: Paul Eggert <[email protected]>
Date: Mon, 14 Feb 2011 21:05:18 -0800
Subject: [PATCH] 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.
---
 src/uptime.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/src/uptime.c b/src/uptime.c
index 7809e07..da8e4dd 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');
-- 
1.7.4


Reply via email to