Fix warnings trivial warnings.

Fix warnings about:
 . Unused variables
 . format mismatch in printf/scanf format string and arguments
 . Missing parenthesis around assignment as truth values
 . Clang warnings anout unknown GCC pragma
This commit is contained in:
2012-12-11 18:42:21 +01:00
parent 77399bd649
commit 0ac803292e
65 changed files with 297 additions and 284 deletions

View File

@@ -394,8 +394,8 @@ char *dir1, *cbuf2;
}
/* Both files are now open. Do the copying. */
if (!rflag && strncmp((sp->namep + n - 2), ".Z", (size_t)2) ||
rflag && !strncmp((sp->namep + n - 2), ".Z", (size_t)2)) {
if ((!rflag && strncmp((sp->namep + n - 2), ".Z", (size_t)2)) ||
(rflag && !strncmp((sp->namep + n - 2), ".Z", (size_t)2))) {
if (zflag && (rflag || (n <= (NAME_SIZE - 2)))) {
close(fd1);
close(fd2);