From c1327413df4513f7be64816428eaae82602fc173 Mon Sep 17 00:00:00 2001 From: Lauri Tirkkonen Date: Wed, 16 Jan 2019 21:28:28 +0200 Subject: [PATCH] cmp: add -Wall --- bin/cmp/Makefile | 1 + bin/cmp/regular.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/cmp/Makefile b/bin/cmp/Makefile index 019d001879..4b9ebc0ceb 100644 --- a/bin/cmp/Makefile +++ b/bin/cmp/Makefile @@ -2,6 +2,7 @@ PROG= cmp SRCS= cmp.c misc.c regular.c special.c +COPTS= -Wall .include "compat.mk" .include diff --git a/bin/cmp/regular.c b/bin/cmp/regular.c index fb452f6375..066c08c22a 100644 --- a/bin/cmp/regular.c +++ b/bin/cmp/regular.c @@ -47,7 +47,7 @@ void c_regular(int fd1, char *file1, off_t skip1, off_t len1, int fd2, char *file2, off_t skip2, off_t len2) { - u_char ch, *p1, *p2; + char ch, *p1, *p2; off_t byte, length, line; int dfound; -- 2.11.4.GIT