summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-01-20 11:03:15 +0000
committerbde <bde@FreeBSD.org>1998-01-20 11:03:15 +0000
commit69cc48469969f7d36269cc77135b4fc379a62e7e (patch)
treeb884de322e9c49467fe48ceb9cd8648360dc84df /lib
parent7d170d6fd8f54857742e05f8a4e93e99f32fe0bd (diff)
downloadFreeBSD-src-69cc48469969f7d36269cc77135b4fc379a62e7e.zip
FreeBSD-src-69cc48469969f7d36269cc77135b4fc379a62e7e.tar.gz
Fixed #includes in the synopsis and in an example. <sys/socket.h>
isn't a prerequisite, since it isn't required for the prototypes and isn't always needed to call the functions (the address family might be a variable).
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/net/addr2ascii.32
-rw-r--r--lib/libdisk/libdisk.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/net/addr2ascii.3 b/lib/libc/net/addr2ascii.3
index 282acac..8cf1b85 100644
--- a/lib/libc/net/addr2ascii.3
+++ b/lib/libc/net/addr2ascii.3
@@ -37,7 +37,6 @@
.Nd Generic address formatting routines
.Sh SYNOPSIS
.Fd #include <sys/types.h>
-.Fd #include <sys/socket.h>
.Fd #include <netinet/in.h>
.Fd #include <arpa/inet.h>
.Ft "char *"
@@ -130,6 +129,7 @@ and
.Fn inet_aton
could be implemented thusly:
.Bd -literal -offset indent
+#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
diff --git a/lib/libdisk/libdisk.h b/lib/libdisk/libdisk.h
index b8c724e..cbf18e8 100644
--- a/lib/libdisk/libdisk.h
+++ b/lib/libdisk/libdisk.h
@@ -6,7 +6,7 @@
* this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
* ----------------------------------------------------------------------------
*
-* $Id: libdisk.h,v 1.26 1997/02/22 15:06:35 peter Exp $
+* $Id: libdisk.h,v 1.27 1997/03/19 01:54:04 bde Exp $
*
*/
@@ -166,7 +166,7 @@ Set_Boot_Mgr(struct disk *d, const u_char *bootmgr);
*/
void
-Set_Boot_Blocks(struct disk *d, const u_char *boot1, const u_char *boot2);
+Set_Boot_Blocks(struct disk *d, const u_char *_boot1, const u_char *_boot2);
/* Use these boot-blocks on this disk. Gets written when Write_Disk()
* is called
*/
OpenPOWER on IntegriCloud