diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2016-02-07 00:49:29 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2016-02-07 00:49:29 +0000 |
commit | 3f165897ac301bbf946a15ff82ff3260ae36cb20 (patch) | |
tree | e5b6a83ccce4ca98fe3b41ee26b8583746e85ce4 /usr.sbin/dhcrelay/dhcrelay.c | |
parent | b6249db2d7089ab71bae1b8aea3a0399482e4c41 (diff) |
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/dhcrelay.c')
-rw-r--r-- | usr.sbin/dhcrelay/dhcrelay.c | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/usr.sbin/dhcrelay/dhcrelay.c b/usr.sbin/dhcrelay/dhcrelay.c index 2e2e071164d..b44f3835561 100644 --- a/usr.sbin/dhcrelay/dhcrelay.c +++ b/usr.sbin/dhcrelay/dhcrelay.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dhcrelay.c,v 1.38 2013/03/04 00:29:56 benno Exp $ */ +/* $OpenBSD: dhcrelay.c,v 1.39 2016/02/07 00:49:28 krw Exp $ */ /* * Copyright (c) 2004 Henning Brauer <henning@cvs.openbsd.org> @@ -39,8 +39,26 @@ * Enterprises, see ``http://www.vix.com''. */ -#include "dhcpd.h" +#include <sys/types.h> #include <sys/ioctl.h> +#include <sys/socket.h> + +#include <arpa/inet.h> + +#include <net/if.h> + +#include <errno.h> +#include <netdb.h> +#include <paths.h> +#include <pwd.h> +#include <stdio.h> +#include <stdlib.h> +#include <string.h> +#include <syslog.h> +#include <unistd.h> + +#include "dhcp.h" +#include "dhcpd.h" void usage(void); void relay(struct interface_info *, struct dhcp_packet *, int, |