aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/hexdump
diff options
context:
space:
mode:
authorJohan Karlsson <johan@FreeBSD.org>2004-07-16 11:07:07 +0000
committerJohan Karlsson <johan@FreeBSD.org>2004-07-16 11:07:07 +0000
commit7eaedc0cd3221c31679eef1550163074c16d5166 (patch)
tree864c16a4de7bd93349e756998f8f8261547ec314 /usr.bin/hexdump
parentac1ed13853d9aece8df73f0a14a63251eca741cd (diff)
downloadsrc-7eaedc0cd3221c31679eef1550163074c16d5166.tar.gz
src-7eaedc0cd3221c31679eef1550163074c16d5166.zip
Include <string.h> to get memset and strcmp prototype.
Sort includes. This is now WARNS=2 clean, bump WARNS to keep it clean.
Notes
Notes: svn path=/head/; revision=132253
Diffstat (limited to 'usr.bin/hexdump')
-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 4cd3cc5dc62f..be572cf9ffdb 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 5d8ade9ed0fc..9668780677b0 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"