# IMPORTANT: We should be using c99 instead of gnu99 but for some reason
# generic linux headers as of 2.6.19 don't allow this in asm/types.h
CFLAGS += -pedantic -std=gnu99 \
- -Wall -Wextra -Wunused -Wimplicit -Wshadow -Wformat=2 \
+ -Wall -Wunused -Wimplicit -Wshadow -Wformat=2 \
-Wmissing-declarations -Wno-missing-prototypes -Wwrite-strings \
-Wbad-function-cast -Wnested-externs -Wcomment -Winline \
-Wchar-subscripts -Wcast-align -Wno-format-nonliteral
{
switch (sig)
{
- break;
case SIGINT:
logger (LOG_INFO, "received SIGINT, stopping");
retval = (! daemonised);
interface_t *iface;
unsigned char hwaddr[16];
int hwlen = 0;
- sa_family_t family;
+ sa_family_t family = 0;
unsigned short mtu;
#ifndef __linux__
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+#include <sys/types.h>
#include <sys/socket.h>
#include <sys/select.h>
#include <sys/wait.h>
#include <sys/select.h>
#include <sys/socket.h>
#include <sys/uio.h>
-#include <arpa/inet.h>
#include <netinet/in_systm.h>
+#include <netinet/in.h>
#include <netinet/ip.h>
#include <netinet/udp.h>
#include <netinet/if_ether.h>
#include <net/if_types.h>
#endif
#include <net/if.h>
+#include <arpa/inet.h>
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>