[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] uptime: omit unnecessary #if
From: |
Paul Eggert |
Subject: |
[PATCH] uptime: omit unnecessary #if |
Date: |
Mon, 14 Feb 2011 21:07:06 -0800 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7 |
I pushed this one as obvious:
>From 7195a3a9775db6f249ebfaa7df4bf79e17421a3d Mon Sep 17 00:00:00 2001
From: Paul Eggert <address@hidden>
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] uptime: omit unnecessary #if,
Paul Eggert <=