summaryrefslogtreecommitdiffstats
path: root/sys/nlm
diff options
context:
space:
mode:
authorattilio <attilio@FreeBSD.org>2010-09-24 15:01:45 +0000
committerattilio <attilio@FreeBSD.org>2010-09-24 15:01:45 +0000
commit278493a1a57074b0ff4561304d271e464a4944ef (patch)
tree761e44816c0dd4bf028f704e2614b143338f000d /sys/nlm
parent59060ff14e0dc0d4fb91766b662dfddf5c007feb (diff)
downloadFreeBSD-src-278493a1a57074b0ff4561304d271e464a4944ef.zip
FreeBSD-src-278493a1a57074b0ff4561304d271e464a4944ef.tar.gz
Make the RPC specific __rpc_inet_ntop() and __rpc_inet_pton() general
in the kernel (just as inet_ntoa() and inet_aton()) are and sync their prototype accordingly with already mentioned functions. Sponsored by: Sandvine Incorporated Reviewed by: emaste, rstone Approved by: dfr MFC after: 2 weeks
Diffstat (limited to 'sys/nlm')
-rw-r--r--sys/nlm/nlm_prot_impl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/nlm/nlm_prot_impl.c b/sys/nlm/nlm_prot_impl.c
index f6b296d..5f7f8e1 100644
--- a/sys/nlm/nlm_prot_impl.c
+++ b/sys/nlm/nlm_prot_impl.c
@@ -1055,13 +1055,13 @@ nlm_find_host_by_addr(const struct sockaddr *addr, int vers)
switch (addr->sa_family) {
case AF_INET:
- __rpc_inet_ntop(AF_INET,
+ inet_ntop(AF_INET,
&((const struct sockaddr_in *) addr)->sin_addr,
tmp, sizeof tmp);
break;
#ifdef INET6
case AF_INET6:
- __rpc_inet_ntop(AF_INET6,
+ inet_ntop(AF_INET6,
&((const struct sockaddr_in6 *) addr)->sin6_addr,
tmp, sizeof tmp);
break;
OpenPOWER on IntegriCloud