Changeset 9646159 in mainline for uspace/app/bdsh/cmds/modules/ls/ls.c
- Timestamp:
 - 2009-02-21T11:44:24Z (17 years ago)
 - Branches:
 - lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
 - Children:
 - 0cb9fa0
 - Parents:
 - 5ad8661
 - File:
 - 
      
- 1 edited
 
- 
          
  uspace/app/bdsh/cmds/modules/ls/ls.c (modified) (3 diffs)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
uspace/app/bdsh/cmds/modules/ls/ls.c
r5ad8661 r9646159 115 115 break; 116 116 case LS_FILE: 117 ls_print_file(dp->d_name );117 ls_print_file(dp->d_name, buff); 118 118 break; 119 119 case LS_BOGUS: … … 144 144 } 145 145 146 static void ls_print_file(const char * f)147 { 148 printf("%-40s\t%llu\n", f, (long long) flen(f));146 static void ls_print_file(const char *name, const char *pathname) 147 { 148 printf("%-40s\t%llu\n", name, (long long) flen(pathname)); 149 149 150 150 return; … … 193 193 return CMD_FAILURE; 194 194 case LS_FILE: 195 ls_print_file(buff );195 ls_print_file(buff, buff); 196 196 break; 197 197 case LS_DIR:  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  