summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjdp <jdp@FreeBSD.org>1996-10-08 22:30:08 +0000
committerjdp <jdp@FreeBSD.org>1996-10-08 22:30:08 +0000
commit32032fd3dfd54672b93bc90711ba1024e19808c3 (patch)
tree6c163f4e84748b5d0ec671c8281be63b8224c9b8
parent11c65a934bc02357fb7696a9427a18d63f8675a0 (diff)
downloadFreeBSD-src-32032fd3dfd54672b93bc90711ba1024e19808c3.zip
FreeBSD-src-32032fd3dfd54672b93bc90711ba1024e19808c3.tar.gz
Fix an error in the description of "h_errno". Add "const" to a few
declarations to make them agree with the actual prototypes in <netdb.h>.
-rw-r--r--lib/libc/net/gethostbyname.38
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/net/gethostbyname.3 b/lib/libc/net/gethostbyname.3
index 702a116..59cf308 100644
--- a/lib/libc/net/gethostbyname.3
+++ b/lib/libc/net/gethostbyname.3
@@ -44,16 +44,16 @@
.Nd get network host entry
.Sh SYNOPSIS
.Fd #include <netdb.h>
-.Fd extern struct h_errno;
+.Fd extern int h_errno;
.Ft struct hostent *
-.Fn gethostbyname "char *name"
+.Fn gethostbyname "const char *name"
.Ft struct hostent *
-.Fn gethostbyaddr "char *addr" "int len" "int type"
+.Fn gethostbyaddr "const char *addr" "int len" "int type"
.Ft struct hostent *
.Fn gethostent void
.Fn sethostent "int stayopen"
.Fn endhostent void
-.Fn herror "char *string"
+.Fn herror "const char *string"
.Sh DESCRIPTION
The
.Fn gethostbyname
OpenPOWER on IntegriCloud