2010-06-01 Ralf Corsépius <ralf.corsepius@rtems.org>

* libmisc/shell/print-ls.c: Remove (long) cast of st_ino.
This commit is contained in:
Ralf Corsepius
2010-06-01 10:46:16 +00:00
parent 8f67ada48a
commit d9120e5665
2 changed files with 3 additions and 3 deletions
+1
View File
@@ -1,5 +1,6 @@
2010-06-01 Ralf Corsépius <ralf.corsepius@rtems.org>
* libmisc/shell/print-ls.c: Remove (long) cast of st_ino.
* libcsupport/include/rtems/libio.h, libcsupport/src/mount-mgr.c:
Add missing 'const'.
* libfs/src/nfsclient/src/xdr_mbuf.c: Warning removal.
+2 -3
View File
@@ -132,8 +132,7 @@ printlong(rtems_shell_ls_globals* globals, DISPLAY *dp)
continue;
sp = p->fts_statp;
if (f_inode)
(void)printf("%*lu ", dp->s_inode,
(unsigned long)sp->st_ino);
(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));
@@ -383,7 +382,7 @@ printaname(rtems_shell_ls_globals* globals,
sp = p->fts_statp;
chcnt = 0;
if (f_inode)
chcnt += printf("%*lu ", inodefield, (unsigned long)sp->st_ino);
chcnt += printf("%*lu ", inodefield, sp->st_ino);
if (f_size) {
#if RTEMS_REMOVED
if (f_humanize) {