From a32d332e5205b703498b31f4d6ba7100b7b71cd3 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Tue, 18 Jan 2000 23:38:19 +0000 Subject: [PATCH] Remove AI_MASK --- lib/lwres/getaddrinfo.c | 6 ++++-- lib/lwres/include/lwres/netdb.h.in | 1 - 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/lwres/getaddrinfo.c b/lib/lwres/getaddrinfo.c index bfb24f184b..19799d86ea 100644 --- a/lib/lwres/getaddrinfo.c +++ b/lib/lwres/getaddrinfo.c @@ -3,7 +3,7 @@ * The Berkeley Software Design Inc. software License Agreement specifies * the terms and conditions for redistribution. * - * BSDI $Id: getaddrinfo.c,v 1.4 2000/01/18 05:37:19 marka Exp $ + * BSDI $Id: getaddrinfo.c,v 1.5 2000/01/18 23:38:19 marka Exp $ */ @@ -41,6 +41,8 @@ static void set_order(int, int (**)()); #define FOUND_IPV6 0x2 #define FOUND_MAX 2 +#define ISC_AI_MASK (AI_PASSIVE|AI_CANONNAME|AI_NUMERICHOST) + int getaddrinfo(const char *hostname, const char *servname, const struct addrinfo *hints, struct addrinfo **res) @@ -57,7 +59,7 @@ getaddrinfo(const char *hostname, const char *servname, proto = NULL; if (hints != NULL) { - if (hints->ai_flags & ~(AI_MASK)) + if (hints->ai_flags & ~(ISC_AI_MASK)) return (EAI_BADFLAGS); if (hints->ai_addrlen || hints->ai_canonname || hints->ai_addr || hints->ai_next) { diff --git a/lib/lwres/include/lwres/netdb.h.in b/lib/lwres/include/lwres/netdb.h.in index a46701b712..de22650662 100644 --- a/lib/lwres/include/lwres/netdb.h.in +++ b/lib/lwres/include/lwres/netdb.h.in @@ -66,7 +66,6 @@ struct addrinfo { #define AI_PASSIVE 0x00000001 #define AI_CANONNAME 0x00000002 #define AI_NUMERICHOST 0x00000004 -#define AI_MASK 0x00000007 #endif /*