Changes in uspace/app/df/df.c [b7fd2a0:9af1c61] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/df/df.c
rb7fd2a0 r9af1c61 56 56 static bool display_blocks; 57 57 58 static errno_t size_to_human_readable(uint64_t, size_t, char **);58 static int size_to_human_readable(uint64_t, size_t, char **); 59 59 static void print_header(void); 60 static errno_t print_statfs(struct statfs *, char *, char *);60 static int print_statfs(struct statfs *, char *, char *); 61 61 static void print_usage(void); 62 62 … … 65 65 int optres, errflg = 0; 66 66 struct statfs st; 67 errno_t rc;67 int rc; 68 68 69 69 display_blocks = false; … … 128 128 } 129 129 130 static errno_t size_to_human_readable(uint64_t nblocks, size_t block_size, char **rptr)130 static int size_to_human_readable(uint64_t nblocks, size_t block_size, char **rptr) 131 131 { 132 132 cap_spec_t cap; … … 147 147 } 148 148 149 static errno_t print_statfs(struct statfs *st, char *name, char *mountpoint)149 static int print_statfs(struct statfs *st, char *name, char *mountpoint) 150 150 { 151 151 uint64_t const used_blocks = st->f_blocks - st->f_bfree; 152 152 unsigned const perc_used = PERCENTAGE(used_blocks, st->f_blocks); 153 153 char *str; 154 errno_t rc;154 int rc; 155 155 156 156 printf("%10s", name);
Note:
See TracChangeset
for help on using the changeset viewer.