[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[coreutils] [PATCH] who: omit useless definitions of MAXHOSTNAMELEN
From: |
Paul Eggert |
Subject: |
[coreutils] [PATCH] who: omit useless definitions of MAXHOSTNAMELEN |
Date: |
Mon, 20 Dec 2010 17:45:22 -0800 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7 |
This prevents a compilation failure on Solaris 8, GCC 4.4.2, with
"configure --enable-gcc-warnings".
* src/who.c (MAXHOSTNAMELEN): Remove; no longer needed.
* src/pinky.c: Likewise.
---
src/pinky.c | 4 ----
src/who.c | 4 ----
2 files changed, 0 insertions(+), 8 deletions(-)
diff --git a/src/pinky.c b/src/pinky.c
index 87d0a6f..e9b4d1b 100644
--- a/src/pinky.c
+++ b/src/pinky.c
@@ -37,10 +37,6 @@
proper_name ("David MacKenzie"), \
proper_name ("Kaveh Ghazi")
-#ifndef MAXHOSTNAMELEN
-# define MAXHOSTNAMELEN 64
-#endif
-
char *ttyname (int);
/* If true, display the hours:minutes since each user has touched
diff --git a/src/who.c b/src/who.c
index ac98881..5ee2aa2 100644
--- a/src/who.c
+++ b/src/who.c
@@ -49,10 +49,6 @@
proper_name ("David MacKenzie"), \
proper_name ("Michael Stone")
-#ifndef MAXHOSTNAMELEN
-# define MAXHOSTNAMELEN 64
-#endif
-
#ifdef RUN_LVL
# define UT_TYPE_RUN_LVL(U) UT_TYPE_EQ (U, RUN_LVL)
#else
--
1.7.2
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [coreutils] [PATCH] who: omit useless definitions of MAXHOSTNAMELEN,
Paul Eggert <=