diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2016-02-06 19:30:53 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2016-02-06 19:30:53 +0000 |
commit | 8ef2fa9bbd914f2f092dc28bb985d3ac8b159b2f (patch) | |
tree | d2daead8d38572189c984432fa38cf831f65bb61 /sbin/dhclient/dhclient.c | |
parent | 25796b12bea3a4fb5215b57ba66ef7a99ea06e39 (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 'sbin/dhclient/dhclient.c')
-rw-r--r-- | sbin/dhclient/dhclient.c | 28 |
1 files changed, 24 insertions, 4 deletions
diff --git a/sbin/dhclient/dhclient.c b/sbin/dhclient/dhclient.c index 70554488677..b1cdaac6ba2 100644 --- a/sbin/dhclient/dhclient.c +++ b/sbin/dhclient/dhclient.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dhclient.c,v 1.371 2016/01/26 18:26:19 mmcc Exp $ */ +/* $OpenBSD: dhclient.c,v 1.372 2016/02/06 19:30:52 krw Exp $ */ /* * Copyright 2004 Henning Brauer <henning@openbsd.org> @@ -53,21 +53,41 @@ * purpose. */ -#include "dhcpd.h" -#include "privsep.h" - #include <sys/types.h> #include <sys/socket.h> +#include <sys/stat.h> #include <sys/ioctl.h> #include <sys/uio.h> +#include <sys/queue.h> + +#include <net/if.h> +#include <net/route.h> + +#include <netinet/in.h> +#include <netinet/if_ether.h> +#include <arpa/inet.h> + +#include <ctype.h> +#include <errno.h> +#include <fcntl.h> #include <ifaddrs.h> +#include <imsg.h> #include <limits.h> +#include <paths.h> #include <poll.h> #include <pwd.h> #include <resolv.h> +#include <signal.h> #include <stdint.h> +#include <stdlib.h> #include <string.h> +#include <syslog.h> +#include <unistd.h> + +#include "dhcp.h" +#include "dhcpd.h" +#include "privsep.h" char *path_dhclient_conf = _PATH_DHCLIENT_CONF; char *path_dhclient_db = NULL; |