wc: Remove unnecessary precision specifier in format strings
The default precision for 'u' conversions is 1, so we don't need to specify it in the format string.
This commit is contained in:
parent
abf068492e
commit
27f3ca6063
6
wc.c
6
wc.c
|
@ -17,17 +17,17 @@ output(const char *str, size_t nc, size_t nl, size_t nw)
|
||||||
if (lflag) {
|
if (lflag) {
|
||||||
if (!first)
|
if (!first)
|
||||||
putchar(' ');
|
putchar(' ');
|
||||||
printf("%*.1zu", first ? (first = 0) : 6, nl);
|
printf("%*zu", first ? (first = 0) : 6, nl);
|
||||||
}
|
}
|
||||||
if (wflag) {
|
if (wflag) {
|
||||||
if (!first)
|
if (!first)
|
||||||
putchar(' ');
|
putchar(' ');
|
||||||
printf("%*.1zu", first ? (first = 0) : 6, nw);
|
printf("%*zu", first ? (first = 0) : 6, nw);
|
||||||
}
|
}
|
||||||
if (cmode) {
|
if (cmode) {
|
||||||
if (!first)
|
if (!first)
|
||||||
putchar(' ');
|
putchar(' ');
|
||||||
printf("%*.1zu", first ? (first = 0) : 6, nc);
|
printf("%*zu", first ? (first = 0) : 6, nc);
|
||||||
}
|
}
|
||||||
if (str)
|
if (str)
|
||||||
printf(" %s", str);
|
printf(" %s", str);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user