summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1997-03-19 19:41:20 +0000
committerbde <bde@FreeBSD.org>1997-03-19 19:41:20 +0000
commit0e6987f95b41e8595536e877ec50562cb3da1127 (patch)
treeac376878be6b154d1b652bd25a7ab7b49e6a4b25 /lib
parente942e13149319709b58f81ea26b855a202f553e5 (diff)
downloadFreeBSD-src-0e6987f95b41e8595536e877ec50562cb3da1127.zip
FreeBSD-src-0e6987f95b41e8595536e877ec50562cb3da1127.tar.gz
Fixed missing #include of <sys/types.h> and wrong arg types in synopsis.
Reviewed by: wollman
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/net/inet.311
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/libc/net/inet.3 b/lib/libc/net/inet.3
index 6eef5ce..6ad1bc6 100644
--- a/lib/libc/net/inet.3
+++ b/lib/libc/net/inet.3
@@ -30,7 +30,7 @@
.\" SUCH DAMAGE.
.\"
.\" From: @(#)inet.3 8.1 (Berkeley) 6/4/93
-.\" $Id$
+.\" $Id: inet.3,v 1.5 1997/02/22 15:00:15 peter Exp $
.\"
.Dd June 17, 1996
.Dt INET 3
@@ -45,19 +45,20 @@
.Nm inet_netof
.Nd Internet address manipulation routines
.Sh SYNOPSIS
+.Fd #include <sys/types.h>
.Fd #include <sys/socket.h>
.Fd #include <netinet/in.h>
.Fd #include <arpa/inet.h>
.Ft int
-.Fn inet_aton "char *cp" "struct in_addr *pin"
+.Fn inet_aton "const char *cp" "struct in_addr *pin"
.Ft unsigned long
-.Fn inet_addr "char *cp"
+.Fn inet_addr "const char *cp"
.Ft unsigned long
-.Fn inet_network "char *cp"
+.Fn inet_network "const char *cp"
.Ft char *
.Fn inet_ntoa "struct in_addr in"
.Ft struct in_addr
-.Fn inet_makeaddr "int net" "int lna"
+.Fn inet_makeaddr "unsigned long net" "unsigned long lna"
.Ft unsigned long
.Fn inet_lnaof "struct in_addr in"
.Ft unsigned long
OpenPOWER on IntegriCloud