From: Paul Eggert Date: Tue, 21 Dec 2010 01:40:31 +0000 (-0800) Subject: who: omit useless definitions of MAXHOSTNAMELEN X-Git-Tag: v8.8~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=960fc616247dda92ac6f0b61ffaacb357484227b;p=thirdparty%2Fcoreutils.git 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. --- diff --git a/src/pinky.c b/src/pinky.c index 87d0a6f367..e9b4d1bca9 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 ac988816be..5ee2aa26b3 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