Fix wrong datatypes to printf in ls.

gcc still complains, but that is because uintmax_t is declared incorrectly.
This commit is contained in:
Jonas 'Sortie' Termansen 2012-09-09 12:20:58 +02:00
parent 8595ec83da
commit 1369aa9da9

View file

@ -134,7 +134,7 @@ int handleentry(const char* path, const char* name)
if ( 1023 < size ) { size /= 1024UL; sizeunit = "T"; }
if ( 1023 < size ) { size /= 1024UL; sizeunit = "P"; }
perms[10] = 0;
printf("%s %ji root root %ji%s\t%s\n", perms, (uintmax_t) st.st_nlink,
printf("%s %ju root root %ju%s\t%s\n", perms, (uintmax_t) st.st_nlink,
(uintmax_t) size, sizeunit, name);
return 0;
}