114,7 → 114,7 |
ls_print_dir(dp->d_name); |
break; |
case LS_FILE: |
ls_print_file(dp->d_name, buff); |
ls_print_file(dp->d_name); |
break; |
case LS_BOGUS: |
/* Odd chance it was deleted from the time readdir() found |
143,9 → 143,9 |
return; |
} |
|
static void ls_print_file(const char *name, const char *pathname) |
static void ls_print_file(const char *f) |
{ |
printf("%-40s\t%llu\n", name, (long long) flen(pathname)); |
printf("%-40s\t%llu\n", f, (long long) flen(f)); |
|
return; |
} |
192,7 → 192,7 |
free(buff); |
return CMD_FAILURE; |
case LS_FILE: |
ls_print_file(buff, buff); |
ls_print_file(buff); |
break; |
case LS_DIR: |
dirp = opendir(buff); |