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).
This commit is contained in:
bde 1998-01-20 11:03:15 +00:00
parent 7d170d6fd8
commit 69cc484699
2 changed files with 3 additions and 3 deletions

View File

@ -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>

View File

@ -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
*/