aboutsummaryrefslogtreecommitdiffstats
path: root/lib/libc/net/gethostbyname.3
diff options
context:
space:
mode:
authorPawel Jakub Dawidek <pjd@FreeBSD.org>2013-08-18 10:38:59 +0000
committerPawel Jakub Dawidek <pjd@FreeBSD.org>2013-08-18 10:38:59 +0000
commit0237ec97ff5716b6f900c12fb0fb37b7f24edd0d (patch)
treeac0dd5995d795a87432f4777ee7ed3f0ba285d60 /lib/libc/net/gethostbyname.3
parentc65779d460777106793a8f6c00647229882eca60 (diff)
downloadsrc-0237ec97ff5716b6f900c12fb0fb37b7f24edd0d.tar.gz
src-0237ec97ff5716b6f900c12fb0fb37b7f24edd0d.zip
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.
Notes
Notes: svn path=/head/; revision=254484
Diffstat (limited to 'lib/libc/net/gethostbyname.3')
-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 9b8c0b915333..35f031b5727a 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 ,