From 8b5edf7f5b6beed6c920f17eed905067eb649549 Mon Sep 17 00:00:00 2001 From: nectar Date: Thu, 24 Apr 2003 17:41:20 +0000 Subject: [PATCH] Catch up with nsdispatch.c: nsdispatch(3) is now `hidden' by namespace.h. Sponsored by: DARPA, Network Associates Laboratories --- lib/libc/net/getaddrinfo.c | 2 +- lib/libc/net/name6.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/libc/net/getaddrinfo.c b/lib/libc/net/getaddrinfo.c index 37e680cd9f75..e2cb71aae15a 100644 --- a/lib/libc/net/getaddrinfo.c +++ b/lib/libc/net/getaddrinfo.c @@ -607,7 +607,7 @@ explore_fqdn(pai, hostname, servname, res) return 0; } - switch (nsdispatch(&result, dtab, NSDB_HOSTS, "getaddrinfo", + switch (_nsdispatch(&result, dtab, NSDB_HOSTS, "getaddrinfo", default_dns_files, hostname, pai)) { case NS_TRYAGAIN: error = EAI_AGAIN; diff --git a/lib/libc/net/name6.c b/lib/libc/net/name6.c index ae9eb314320f..3326cdfddcbc 100644 --- a/lib/libc/net/name6.c +++ b/lib/libc/net/name6.c @@ -291,7 +291,7 @@ _ghbyname(const char *name, int af, int flags, int *errp) } THREAD_LOCK(); - rval = nsdispatch(&hp, dtab, NSDB_HOSTS, "ghbyname", default_src, + rval = _nsdispatch(&hp, dtab, NSDB_HOSTS, "ghbyname", default_src, name, af, errp); THREAD_UNLOCK(); return (rval == NS_SUCCESS) ? hp : NULL; @@ -438,7 +438,7 @@ getipnodebyaddr(const void *src, size_t len, int af, int *errp) } THREAD_LOCK(); - rval = nsdispatch(&hp, dtab, NSDB_HOSTS, "ghbyaddr", default_src, + rval = _nsdispatch(&hp, dtab, NSDB_HOSTS, "ghbyaddr", default_src, src, len, af, errp); THREAD_UNLOCK(); return (rval == NS_SUCCESS) ? hp : NULL;