aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--man2/gethostid.22
1 files changed, 1 insertions, 1 deletions
diff --git a/man2/gethostid.2 b/man2/gethostid.2
index 4e4c9c4814..0e06bf1f05 100644
--- a/man2/gethostid.2
+++ b/man2/gethostid.2
@@ -76,7 +76,7 @@ cannot open
then it obtains the host name using
.BR gethostname (2),
passes that host name to
-.BR gethostbyaddr (3)
+.BR gethostbyname_r (3)
in order to obtain the host's IPv4 address,
and returns a value obtained by bit-twiddling the IPv4 address.
(This value may not be unique.)