diff options
author | Nick Withers <nick.withers@anu.edu.au> | 2015-12-10 20:04:54 +1100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-12-15 07:47:27 +0100 |
commit | 7a0c4854c6abe8665b7e50a3bafebce84e7872a4 (patch) | |
tree | d32a754ff42a196229f90c8646c0ff4c6eb0d7c3 /cpukit/libmisc/shell/print-ls.c | |
parent | rtems: Delete empty function (diff) | |
download | rtems-7a0c4854c6abe8665b7e50a3bafebce84e7872a4.tar.bz2 |
libmisc: Include missing header file, fix warnings
Diffstat (limited to '')
-rw-r--r-- | cpukit/libmisc/shell/print-ls.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cpukit/libmisc/shell/print-ls.c b/cpukit/libmisc/shell/print-ls.c index e83ed300d7..5880e6eefc 100644 --- a/cpukit/libmisc/shell/print-ls.c +++ b/cpukit/libmisc/shell/print-ls.c @@ -124,7 +124,7 @@ printlong(rtems_shell_ls_globals* globals, DISPLAY *dp) } else { #endif (void)printf("total %llu\n", - (long long)(howmany(dp->btotal, blocksize))); + (unsigned long long)(howmany(dp->btotal, blocksize))); #if RTEMS_REMOVED } #endif @@ -138,7 +138,7 @@ printlong(rtems_shell_ls_globals* globals, DISPLAY *dp) (void)printf("%*lu ", dp->s_inode, sp->st_ino); if (f_size && !f_humanize) { (void)printf("%*llu ", dp->s_block, - (long long)howmany(sp->st_blocks, blocksize)); + (unsigned long long)howmany(sp->st_blocks, blocksize)); } (void)strmode(sp->st_mode, buf); np = p->fts_pointer; @@ -254,7 +254,7 @@ printcol(rtems_shell_ls_globals* globals, DISPLAY *dp) } else { #endif (void)printf("total %llu\n", - (long long)(howmany(dp->btotal, blocksize))); + (unsigned long long)(howmany(dp->btotal, blocksize))); #if RTEMS_REMOVED } #endif @@ -313,7 +313,7 @@ printacol(rtems_shell_ls_globals* globals, DISPLAY *dp) } else { #endif (void)printf("total %llu\n", - (long long)(howmany(dp->btotal, blocksize))); + (unsigned long long)(howmany(dp->btotal, blocksize))); #if RTEMS_REMOVED } #endif @@ -397,7 +397,7 @@ printaname(rtems_shell_ls_globals* globals, } else { #endif chcnt += printf("%*llu ", sizefield, - (long long)howmany(sp->st_blocks, blocksize)); + (unsigned long long)howmany(sp->st_blocks, blocksize)); #if RTEMS_REMOVED } #endif |