From 0f3d4598adb460494c0dee7a0326c96ec913e973 Mon Sep 17 00:00:00 2001 From: "Nicholas J. Kain" Date: Sun, 26 Dec 2010 15:06:16 -0500 Subject: [PATCH] Add a missing header and remove an unused variable. --- ndhc/dhcpmsg.c | 1 - ndhc/socket.c | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/ndhc/dhcpmsg.c b/ndhc/dhcpmsg.c index d10962c..a171bf7 100644 --- a/ndhc/dhcpmsg.c +++ b/ndhc/dhcpmsg.c @@ -222,7 +222,6 @@ int get_raw_packet(struct dhcpMessage *payload, int fd) { struct ip_udp_dhcp_packet packet; uint16_t check; - const int header_size = sizeof(struct iphdr) + sizeof(struct udphdr); const int packet_size = sizeof(struct ip_udp_dhcp_packet); memset(&packet, 0, packet_size); diff --git a/ndhc/socket.c b/ndhc/socket.c index d394fc6..adb700e 100644 --- a/ndhc/socket.c +++ b/ndhc/socket.c @@ -26,6 +26,7 @@ #include #include #include +#include #include #include #include