diff options
| author | 2016-02-07 00:49:28 +0000 | |
|---|---|---|
| committer | 2016-02-07 00:49:28 +0000 | |
| commit | f70ef60c9d917a97b36d338658b24545fed0c957 (patch) | |
| tree | e178db905a0d5c0821ad84bc2518da84c9e9e93c /usr.sbin/dhcrelay/errwarn.c | |
| parent | Eliminate #include inside *.h files and include only needed headers in (diff) | |
| download | wireguard-openbsd-f70ef60c9d917a97b36d338658b24545fed0c957.tar.xz wireguard-openbsd-f70ef60c9d917a97b36d338658b24545fed0c957.zip | |
Eliminate #include inside *.h files and include only needed headers in
each *.c file.
Inspired by mention of header silliness by Edgar Pettijohn and mmcc@
on tech@.
Diffstat (limited to 'usr.sbin/dhcrelay/errwarn.c')
| -rw-r--r-- | usr.sbin/dhcrelay/errwarn.c | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/usr.sbin/dhcrelay/errwarn.c b/usr.sbin/dhcrelay/errwarn.c index f59340a616b..01cc0e4e929 100644 --- a/usr.sbin/dhcrelay/errwarn.c +++ b/usr.sbin/dhcrelay/errwarn.c @@ -1,4 +1,4 @@ -/* $OpenBSD: errwarn.c,v 1.5 2006/12/18 01:08:58 stevesk Exp $ */ +/* $OpenBSD: errwarn.c,v 1.6 2016/02/07 00:49:28 krw Exp $ */ /* Errors and warnings... */ @@ -40,8 +40,22 @@ * with Vixie Laboratories. */ -#include <errno.h> +#include <sys/types.h> +#include <sys/socket.h> + +#include <net/if.h> +#include <netinet/in.h> + +#include <errno.h> +#include <stdarg.h> +#include <stdio.h> +#include <stdlib.h> +#include <string.h> +#include <syslog.h> +#include <unistd.h> + +#include "dhcp.h" #include "dhcpd.h" static void do_percentm(char *obuf, size_t size, char *ibuf); |
