diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2010-12-20 17:40:31 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2010-12-20 17:43:05 -0800 |
commit | 960fc616247dda92ac6f0b61ffaacb357484227b (patch) | |
tree | fa530f5ad7b277edaf55eb2044c4a736ff93db6b | |
parent | 41159f9604ac101746032f304ade13f52c48f65f (diff) | |
download | coreutils-960fc616247dda92ac6f0b61ffaacb357484227b.tar.xz |
who: omit useless definitions of MAXHOSTNAMELEN
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.
-rw-r--r-- | src/pinky.c | 4 | ||||
-rw-r--r-- | src/who.c | 4 |
2 files changed, 0 insertions, 8 deletions
diff --git a/src/pinky.c b/src/pinky.c index 87d0a6f36..e9b4d1bca 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 @@ -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 |