summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoritojun <>2000-03-13 02:22:12 +0000
committeritojun <>2000-03-13 02:22:12 +0000
commitc554fab840face1e3c931e9ea14bf8e35f577b74 (patch)
tree3b851fa08b864932abc1aa22de5de0b1c73ce996
parent61d48054411bb6ca7d64160cbc2b526138769ea2 (diff)
downloadopenbsd-c554fab840face1e3c931e9ea14bf8e35f577b74.tar.gz
openbsd-c554fab840face1e3c931e9ea14bf8e35f577b74.tar.bz2
openbsd-c554fab840face1e3c931e9ea14bf8e35f577b74.zip
avoid unused variable by #ifdef
-rw-r--r--src/lib/libc/net/getnameinfo.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/lib/libc/net/getnameinfo.c b/src/lib/libc/net/getnameinfo.c
index 1eddbb0bf0..c174b8a7ea 100644
--- a/src/lib/libc/net/getnameinfo.c
+++ b/src/lib/libc/net/getnameinfo.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: getnameinfo.c,v 1.11 2000/03/13 02:18:36 itojun Exp $ */ 1/* $OpenBSD: getnameinfo.c,v 1.12 2000/03/13 02:22:12 itojun Exp $ */
2 2
3/* 3/*
4 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. 4 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -105,7 +105,7 @@ getnameinfo(sa, salen, host, hostlen, serv, servlen, flags)
105 struct hostent *hp; 105 struct hostent *hp;
106 u_short port; 106 u_short port;
107 int family, i; 107 int family, i;
108 char *addr, *p; 108 char *addr;
109 u_int32_t v4a; 109 u_int32_t v4a;
110 int h_error; 110 int h_error;
111 char numserv[512]; 111 char numserv[512];
@@ -268,8 +268,11 @@ getnameinfo(sa, salen, host, hostlen, serv, servlen, flags)
268 if (hp) { 268 if (hp) {
269#if 0 269#if 0
270 if (flags & NI_NOFQDN) { 270 if (flags & NI_NOFQDN) {
271 char *p;
272
271 p = strchr(hp->h_name, '.'); 273 p = strchr(hp->h_name, '.');
272 if (p) *p = '\0'; 274 if (p)
275 *p = '\0';
273 } 276 }
274#endif 277#endif
275 if (strlen(hp->h_name) > hostlen) { 278 if (strlen(hp->h_name) > hostlen) {