summaryrefslogtreecommitdiff
path: root/usr.sbin/dhcpd/hash.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/hash.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/hash.c')
-rw-r--r--usr.sbin/dhcpd/hash.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/usr.sbin/dhcpd/hash.c b/usr.sbin/dhcpd/hash.c
index c817d44506d..2f478d14de9 100644
--- a/usr.sbin/dhcpd/hash.c
+++ b/usr.sbin/dhcpd/hash.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hash.c,v 1.6 2010/01/01 20:30:25 krw Exp $ */
+/* $OpenBSD: hash.c,v 1.7 2016/02/06 23:50:10 krw Exp $ */
/* Routines for manipulating hash tables... */
@@ -40,6 +40,19 @@
* Enterprises, see ``http://www.vix.com''.
*/
+#include <sys/types.h>
+#include <sys/socket.h>
+
+#include <net/if.h>
+
+#include <netinet/in.h>
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
+#include "dhcp.h"
+#include "tree.h"
#include "dhcpd.h"
static int do_hash(unsigned char *, int, int);