From: Dan Harkless Date: Tue, 25 Jan 2000 06:21:38 +0000 (+0000) Subject: The conditional definition of the "np" variable didn't make any sense. It was X-Git-Tag: nmh-1_0~109 X-Git-Url: http://git.marmaro.de/?a=commitdiff_plain;h=e32a18146eb52fc278833d7cfb49ed8d9ace62bc;p=mmh The conditional definition of the "np" variable didn't make any sense. It was only defined if HAVE_GETHOSTBYNAME was defined and only used when HAVE_GETHOSTBYNAME wasn't defined. I'm kind of surprised that never blew up anywhere. Changed the definition conditional to match the usage conditional. --- diff --git a/zotnet/mts/client.c b/zotnet/mts/client.c index 2093374..924684c 100644 --- a/zotnet/mts/client.c +++ b/zotnet/mts/client.c @@ -92,8 +92,7 @@ client (char *args, char *protocol, char *service, int rproto, char *arguments[MAXARGS]; register struct hostent *hp; register struct servent *sp; -/* we assume netent and getnetbyaddr come with gethostbyname */ -#ifdef HAVE_GETHOSTBYNAME +#ifndef HAVE_GETHOSTBYNAME register struct netent *np; #endif