diff --git a/usr.bin/cmp/cmp.c b/usr.bin/cmp/cmp.c --- a/usr.bin/cmp/cmp.c +++ b/usr.bin/cmp/cmp.c @@ -38,6 +38,7 @@ #include #include #include +#include #include #include #include @@ -66,7 +67,6 @@ static void siginfo(int signo) { - info = signo; } #endif @@ -244,7 +244,7 @@ else { if (zflag && sb1.st_size != sb2.st_size) { if (!sflag) - (void) printf("%s %s differ: size\n", + (void)printf("%s %s differ: size\n", file1, file2); exit(DIFF_EXIT); } diff --git a/usr.bin/cmp/link.c b/usr.bin/cmp/link.c --- a/usr.bin/cmp/link.c +++ b/usr.bin/cmp/link.c @@ -27,6 +27,7 @@ */ #include + #include #include #include @@ -42,7 +43,8 @@ { char buf1[PATH_MAX], *p1; char buf2[PATH_MAX], *p2; - int dfound, len1, len2; + ssize_t len1, len2; + int dfound; off_t byte; u_char ch; diff --git a/usr.bin/cmp/regular.c b/usr.bin/cmp/regular.c --- a/usr.bin/cmp/regular.c +++ b/usr.bin/cmp/regular.c @@ -37,6 +37,7 @@ #include #include #include +#include #include #include #include diff --git a/usr.bin/cmp/special.c b/usr.bin/cmp/special.c --- a/usr.bin/cmp/special.c +++ b/usr.bin/cmp/special.c @@ -33,6 +33,7 @@ #include #include +#include #include #include