]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
who: omit useless definitions of MAXHOSTNAMELEN
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 21 Dec 2010 01:40:31 +0000 (17:40 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 21 Dec 2010 01:43:05 +0000 (17:43 -0800)
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
src/who.c

index 87d0a6f367a5a6271079edb45fdab265f57253cc..e9b4d1bca9c32a392cbb85bdfc75f43178f3230f 100644 (file)
   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
index ac988816be370672fa3c5723cbe8ad6fd05e3e74..5ee2aa26b359920e3a0a567e0a0324dd85d3c8ef 100644 (file)
--- a/src/who.c
+++ b/src/who.c
   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