Changeset 7a0c485 in rtems


Ignore:
Timestamp:
Dec 10, 2015, 9:04:54 AM (4 years ago)
Author:
Nick Withers <nick.withers@…>
Branches:
master
Children:
2b137ed
Parents:
e01b184
git-author:
Nick Withers <nick.withers@…> (12/10/15 09:04:54)
git-committer:
Sebastian Huber <sebastian.huber@…> (12/15/15 06:47:27)
Message:

libmisc: Include missing header file, fix warnings

Location:
cpukit/libmisc/shell
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libmisc/shell/main_ls.c

    re01b184 r7a0c485  
    5959#include <getopt.h>
    6060
     61#include <sys/param.h>
    6162#include <sys/types.h>
    6263#include <sys/stat.h>
     
    661662                } else {
    662663                        (void)snprintf(buf, sizeof(buf), "%llu",
    663                             (long long)howmany(maxblock, blocksize));
     664                            (unsigned long long)howmany(maxblock, blocksize));
    664665                        d.s_block = strlen(buf);
    665666                }
  • cpukit/libmisc/shell/print-ls.c

    re01b184 r7a0c485  
    125125#endif
    126126                        (void)printf("total %llu\n",
    127                             (long long)(howmany(dp->btotal, blocksize)));
     127                            (unsigned long long)(howmany(dp->btotal, blocksize)));
    128128#if RTEMS_REMOVED
    129129                }
     
    139139                if (f_size && !f_humanize) {
    140140                        (void)printf("%*llu ", dp->s_block,
    141                             (long long)howmany(sp->st_blocks, blocksize));
     141                            (unsigned long long)howmany(sp->st_blocks, blocksize));
    142142                }
    143143                (void)strmode(sp->st_mode, buf);
     
    255255#endif
    256256                        (void)printf("total %llu\n",
    257                             (long long)(howmany(dp->btotal, blocksize)));
     257                            (unsigned long long)(howmany(dp->btotal, blocksize)));
    258258#if RTEMS_REMOVED
    259259                }
     
    314314#endif
    315315                        (void)printf("total %llu\n",
    316                             (long long)(howmany(dp->btotal, blocksize)));
     316                            (unsigned long long)(howmany(dp->btotal, blocksize)));
    317317#if RTEMS_REMOVED
    318318                }
     
    398398#endif
    399399                        chcnt += printf("%*llu ", sizefield,
    400                             (long long)howmany(sp->st_blocks, blocksize));
     400                            (unsigned long long)howmany(sp->st_blocks, blocksize));
    401401#if RTEMS_REMOVED
    402402                }
Note: See TracChangeset for help on using the changeset viewer.