Ignore:
Timestamp:
2009-01-30T18:17:37Z (16 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7c98874
Parents:
826c203
Message:

Fix file-size display on big-endian machines. Also, rather use off_t than uint64_t for holding file size.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/bdsh/cmds/modules/ls/ls.c

    r826c203 ree79df74  
    5151static char *cmdname = "ls";
    5252
    53 static inline uint64_t flen(const char *f)
     53static inline off_t flen(const char *f)
    5454{
    5555        int fd;
    56         uint64_t size;
     56        off_t size;
    5757
    5858        fd = open(f, O_RDONLY);
     
    146146static void ls_print_file(const char *f)
    147147{
    148         printf("%-40s\t%u\n", f, flen(f));
     148        printf("%-40s\t%llu\n", f, (long long) flen(f));
    149149
    150150        return;
Note: See TracChangeset for help on using the changeset viewer.