summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2013-08-18 10:38:59 +0000
committerpjd <pjd@FreeBSD.org>2013-08-18 10:38:59 +0000
commit76babb36d957f10bcef3a2dfcb50277bbb47ec59 (patch)
treeac0dd5995d795a87432f4777ee7ed3f0ba285d60 /lib
parent6e8f2d848769a398fecc80ef93840372e88ac7a8 (diff)
downloadFreeBSD-src-76babb36d957f10bcef3a2dfcb50277bbb47ec59.zip
FreeBSD-src-76babb36d957f10bcef3a2dfcb50277bbb47ec59.tar.gz
Consistently use 'af' as an argument name for address family.
Now both gethostbyname2(3) and gethostbyaddr(3) use the same argument name. The same argument name is also used in implementations of those functions.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/net/gethostbyname.34
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/net/gethostbyname.3 b/lib/libc/net/gethostbyname.3
index 9b8c0b9..35f031b 100644
--- a/lib/libc/net/gethostbyname.3
+++ b/lib/libc/net/gethostbyname.3
@@ -51,7 +51,7 @@
.Ft struct hostent *
.Fn gethostbyname2 "const char *name" "int af"
.Ft struct hostent *
-.Fn gethostbyaddr "const void *addr" "socklen_t len" "int type"
+.Fn gethostbyaddr "const void *addr" "socklen_t len" "int af"
.Ft struct hostent *
.Fn gethostent void
.Ft void
@@ -107,7 +107,7 @@ in binary form
.Tn ASCII
form).
The
-.Fa type
+.Fa af
argument specifies the address family
(e.g.\&
.Dv AF_INET , AF_INET6 ,
OpenPOWER on IntegriCloud