mirror of git://git.suckless.org/sbase
cmp: Make output of error message POSIX compliant
From POSIX: in the POSIX locale the following diagnostic message shall be written: "cmp: EOF on %s%s\n", <name of shorter file>, <additional info> Amended by mcf: kept weprintf for consistency with other diagnostic messages, but dropped the doubled prefix.
This commit is contained in:
parent
446903d688
commit
53040766d1
2
cmp.c
2
cmp.c
|
@ -57,7 +57,7 @@ main(int argc, char *argv[])
|
||||||
continue;
|
continue;
|
||||||
} else if (b[0] == EOF || b[1] == EOF) {
|
} else if (b[0] == EOF || b[1] == EOF) {
|
||||||
if (!sflag)
|
if (!sflag)
|
||||||
weprintf("cmp: EOF on %s\n", argv[(b[0] != EOF)]);
|
weprintf("EOF on %s\n", argv[(b[0] != EOF)]);
|
||||||
same = 0;
|
same = 0;
|
||||||
break;
|
break;
|
||||||
} else if (!lflag) {
|
} else if (!lflag) {
|
||||||
|
|
Loading…
Reference in New Issue