diff options
| author | Hajimu UMEMOTO <ume@FreeBSD.org> | 2005-05-01 12:37:12 +0000 |
|---|---|---|
| committer | Hajimu UMEMOTO <ume@FreeBSD.org> | 2005-05-01 12:37:12 +0000 |
| commit | f468e837a1a142e1edda84a23ab64900b1a80d3e (patch) | |
| tree | fd25e38ca02ef9081326578ae4458e367a37cba9 /lib/libc/net | |
| parent | 9ec5e87f63b0f06de9f390687e2b638251ad0d4d (diff) | |
Notes
Diffstat (limited to 'lib/libc/net')
| -rw-r--r-- | lib/libc/net/name6.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/lib/libc/net/name6.c b/lib/libc/net/name6.c index 08e399598ccd..c7978f1cfc00 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) |
