diff options
author | mdf <mdf@FreeBSD.org> | 2012-09-27 23:31:12 +0000 |
---|---|---|
committer | mdf <mdf@FreeBSD.org> | 2012-09-27 23:31:12 +0000 |
commit | 8ce8b3ae17aae9323001285d2530d9b793f3c36d (patch) | |
tree | 15b8dbeeffb836f977561b1d67149f3e1b1870b9 /bin/ls/print.c | |
parent | e76336791156e518c57a0aa274e1652774931971 (diff) | |
download | FreeBSD-src-8ce8b3ae17aae9323001285d2530d9b793f3c36d.zip FreeBSD-src-8ce8b3ae17aae9323001285d2530d9b793f3c36d.tar.gz |
Fix bin/ build with a 64-bit ino_t.
Original code by: Gleb Kurtsou
Diffstat (limited to 'bin/ls/print.c')
-rw-r--r-- | bin/ls/print.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/ls/print.c b/bin/ls/print.c index a788042..5a0fc86 100644 --- a/bin/ls/print.c +++ b/bin/ls/print.c @@ -152,7 +152,8 @@ printlong(const DISPLAY *dp) continue; sp = p->fts_statp; if (f_inode) - (void)printf("%*lu ", dp->s_inode, (u_long)sp->st_ino); + (void)printf("%*ju ", + dp->s_inode, (uintmax_t)sp->st_ino); if (f_size) (void)printf("%*jd ", dp->s_block, howmany(sp->st_blocks, blocksize)); @@ -328,7 +329,8 @@ printaname(const FTSENT *p, u_long inodefield, u_long sizefield) sp = p->fts_statp; chcnt = 0; if (f_inode) - chcnt += printf("%*lu ", (int)inodefield, (u_long)sp->st_ino); + chcnt += printf("%*ju ", + (int)inodefield, (uintmax_t)sp->st_ino); if (f_size) chcnt += printf("%*jd ", (int)sizefield, howmany(sp->st_blocks, blocksize)); |