summaryrefslogtreecommitdiffstats
path: root/usr.sbin/dhcpd/dhcp.c
diff options
context:
space:
mode:
authorkrw <krw@openbsd.org>2016-02-06 23:50:10 +0000
committerkrw <krw@openbsd.org>2016-02-06 23:50:10 +0000
commit837cddff4b95f9432151663c8b92d709c11482aa (patch)
treee6bb46ff977523eefd9d5f78e43e3f85b837d9d1 /usr.sbin/dhcpd/dhcp.c
parentEliminate #include inside *.h files and include only needed headers in (diff)
downloadwireguard-openbsd-837cddff4b95f9432151663c8b92d709c11482aa.tar.xz
wireguard-openbsd-837cddff4b95f9432151663c8b92d709c11482aa.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/dhcpd/dhcp.c')
-rw-r--r--usr.sbin/dhcpd/dhcp.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/usr.sbin/dhcpd/dhcp.c b/usr.sbin/dhcpd/dhcp.c
index 6ce9af56a0b..18dc8c40a38 100644
--- a/usr.sbin/dhcpd/dhcp.c
+++ b/usr.sbin/dhcpd/dhcp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dhcp.c,v 1.44 2015/12/21 21:39:11 mmcc Exp $ */
+/* $OpenBSD: dhcp.c,v 1.45 2016/02/06 23:50:10 krw Exp $ */
/*
* Copyright (c) 1995, 1996, 1997, 1998, 1999
@@ -38,6 +38,22 @@
* Enterprises, see ``http://www.vix.com''.
*/
+#include <sys/types.h>
+#include <sys/socket.h>
+
+#include <arpa/inet.h>
+
+#include <net/if.h>
+
+#include <netinet/in.h>
+
+#include <errno.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
+#include "dhcp.h"
+#include "tree.h"
#include "dhcpd.h"
#include "sync.h"