summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr.bin/hexdump/Makefile1
-rw-r--r--usr.bin/hexdump/conv.c3
2 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/hexdump/Makefile b/usr.bin/hexdump/Makefile
index 4cd3cc5..be572cf 100644
--- a/usr.bin/hexdump/Makefile
+++ b/usr.bin/hexdump/Makefile
@@ -7,5 +7,6 @@ MAN= hexdump.1 od.1
MLINKS= hexdump.1 hd.1
LINKS= ${BINDIR}/hexdump ${BINDIR}/od
LINKS+= ${BINDIR}/hexdump ${BINDIR}/hd
+WARNS?= 2
.include <bsd.prog.mk>
diff --git a/usr.bin/hexdump/conv.c b/usr.bin/hexdump/conv.c
index 5d8ade9..9668780 100644
--- a/usr.bin/hexdump/conv.c
+++ b/usr.bin/hexdump/conv.c
@@ -40,10 +40,11 @@ __FBSDID("$FreeBSD$");
#include <sys/types.h>
#include <assert.h>
-#include <stdio.h>
#include <ctype.h>
#include <limits.h>
+#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <wchar.h>
#include <wctype.h>
#include "hexdump.h"
OpenPOWER on IntegriCloud