df: trivial 64-bit fix

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2009-10-21 23:28:20 +02:00
parent 010fb00708
commit a46317b6f3

View File

@ -183,7 +183,7 @@ int df_main(int argc, char **argv)
if (dev_len > 20) {
printf("%s\n%20s", device, "");
} else {
printf("%s%*s", device, 20 - dev_len, "");
printf("%s%*s", device, 20 - (int)dev_len, "");
}
#else
if (printf("\n%-20s" + 1, device) > 20)