From f51647808fe0b8e462e9b639770a695df08e102c Mon Sep 17 00:00:00 2001 From: Brian Wellington Date: Wed, 28 Jun 2000 21:43:46 +0000 Subject: [PATCH] Using 0 as an error value tends to conflict with using 0 to represent success. --- lib/lwres/getnameinfo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/lwres/getnameinfo.c b/lib/lwres/getnameinfo.c index c45474f4a3..ff072ead6a 100644 --- a/lib/lwres/getnameinfo.c +++ b/lib/lwres/getnameinfo.c @@ -15,7 +15,7 @@ * SOFTWARE. */ -/* $Id: getnameinfo.c,v 1.18 2000/06/22 21:59:29 tale Exp $ */ +/* $Id: getnameinfo.c,v 1.19 2000/06/28 21:43:46 bwelling Exp $ */ /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -88,13 +88,13 @@ static struct afd { {0, 0, 0}, }; -#define ENI_NOSOCKET 0 #define ENI_NOSERVNAME 1 #define ENI_NOHOSTNAME 2 #define ENI_MEMORY 3 #define ENI_SYSTEM 4 #define ENI_FAMILY 5 #define ENI_SALEN 6 +#define ENI_NOSOCKET 7 /* * The test against 0 is there to keep the Solaris compiler