mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Fix wrong datatypes to printf in ls.
gcc still complains, but that is because uintmax_t is declared incorrectly.
This commit is contained in:
parent
8595ec83da
commit
1369aa9da9
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue