summaryrefslogtreecommitdiff
path: root/usr.sbin/dhcpd/dhcpd.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2016-02-06 23:50:11 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2016-02-06 23:50:11 +0000
commitb6249db2d7089ab71bae1b8aea3a0399482e4c41 (patch)
treee64685766291fdb65a0994af64d3ef49e80280ad /usr.sbin/dhcpd/dhcpd.c
parent8ef2fa9bbd914f2f092dc28bb985d3ac8b159b2f (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/dhcpd/dhcpd.c')
-rw-r--r--usr.sbin/dhcpd/dhcpd.c23
1 files changed, 20 insertions, 3 deletions
diff --git a/usr.sbin/dhcpd/dhcpd.c b/usr.sbin/dhcpd/dhcpd.c
index 074706c0b2e..5ffc2155770 100644
--- a/usr.sbin/dhcpd/dhcpd.c
+++ b/usr.sbin/dhcpd/dhcpd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dhcpd.c,v 1.49 2015/12/14 01:08:50 krw Exp $ */
+/* $OpenBSD: dhcpd.c,v 1.50 2016/02/06 23:50:10 krw Exp $ */
/*
* Copyright (c) 2004 Henning Brauer <henning@cvs.openbsd.org>
@@ -39,11 +39,28 @@
* Enterprises, see ``http://www.vix.com''.
*/
-#include "dhcpd.h"
-#include "sync.h"
+#include <sys/types.h>
+#include <sys/socket.h>
+
+#include <net/if.h>
+
+#include <arpa/inet.h>
#include <err.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 "tree.h"
+#include "dhcpd.h"
+#include "sync.h"
+
__dead void usage(void);