summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2005-05-01 12:37:12 +0000
committerume <ume@FreeBSD.org>2005-05-01 12:37:12 +0000
commitabf13089c33f3c09816343ac11016530731dbfec (patch)
treefd25e38ca02ef9081326578ae4458e367a37cba9 /lib
parent2d7b156b4fc27247817c21ded9ae61ff956e3a12 (diff)
downloadFreeBSD-src-abf13089c33f3c09816343ac11016530731dbfec.zip
FreeBSD-src-abf13089c33f3c09816343ac11016530731dbfec.tar.gz
oops, we don't need previous change.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/net/name6.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/lib/libc/net/name6.c b/lib/libc/net/name6.c
index 08e3995..c7978f1 100644
--- a/lib/libc/net/name6.c
+++ b/lib/libc/net/name6.c
@@ -222,8 +222,10 @@ static int gai_addr2scopetype(struct sockaddr *);
static FILE *_files_open(int *errp);
static int _files_ghbyname(void *, void *, va_list);
static int _files_ghbyaddr(void *, void *, va_list);
+#ifdef YP
static int _nis_ghbyname(void *, void *, va_list);
static int _nis_ghbyaddr(void *, void *, va_list);
+#endif
static int _dns_ghbyname(void *, void *, va_list);
static int _dns_ghbyaddr(void *, void *, va_list);
static void _dns_shent(int stayopen) __unused;
@@ -1363,6 +1365,7 @@ _files_ghbyaddr(void *rval, void *cb_data, va_list ap)
return (hp != NULL) ? NS_SUCCESS : NS_NOTFOUND;
}
+#ifdef YP
/*
* NIS
*
@@ -1371,7 +1374,6 @@ _files_ghbyaddr(void *rval, void *cb_data, va_list ap)
static int
_nis_ghbyname(void *rval, void *cb_data, va_list ap)
{
-#ifdef YP
const char *name;
int af;
int *errp;
@@ -1387,15 +1389,11 @@ _nis_ghbyname(void *rval, void *cb_data, va_list ap)
*(struct hostent **)rval = hp;
return (hp != NULL) ? NS_SUCCESS : NS_NOTFOUND;
-#else
- return NS_UNAVAIL;
-#endif
}
static int
_nis_ghbyaddr(void *rval, void *cb_data, va_list ap)
{
-#ifdef YP
const void *addr;
int addrlen;
int af;
@@ -1411,10 +1409,8 @@ _nis_ghbyaddr(void *rval, void *cb_data, va_list ap)
hp = _hpcopy(hp, errp);
*(struct hostent **)rval = hp;
return (hp != NULL) ? NS_SUCCESS : NS_NOTFOUND;
-#else
- return NS_UNAVAIL;
-#endif
}
+#endif
#define MAXPACKET (64*1024)
OpenPOWER on IntegriCloud