Use unsigned printf/scanf conversion where more appropriate

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko
2013-11-29 16:45:45 +01:00
parent 9b2a9f0210
commit 327f550669
18 changed files with 37 additions and 37 deletions

View File

@ -70,9 +70,9 @@ static unsigned sum_file(const char *file, unsigned type)
if (type >= SUM_SYSV) {
r = (s & 0xffff) + ((s & 0xffffffff) >> 16);
s = (r & 0xffff) + (r >> 16);
printf("%d %llu %s\n", s, (total_bytes + 511) / 512, file);
printf("%u %llu %s\n", s, (total_bytes + 511) / 512, file);
} else
printf("%05d %5llu %s\n", s, (total_bytes + 1023) / 1024, file);
printf("%05u %5llu %s\n", s, (total_bytes + 1023) / 1024, file);
return 1;
#undef buf
}