Ignore:
Timestamp:
2018-04-04T15:42:37Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2c4e1cc
Parents:
47b2d7e3
Message:

Fix cstyle: make ccheck-fix and commit only files where all the changes are good.

File:
1 edited

Legend:

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

    r47b2d7e3 r1433ecda  
    216216
    217217out:
    218         for(i = 0; i < nbdirs; i++)
     218        for (i = 0; i < nbdirs; i++)
    219219                free(tosort[i].name);
    220220        free(tosort);
     
    240240        struct dir_elem_t *dir_list;
    241241
    242         const char * const trailing_slash = "/";
     242        const char *const trailing_slash = "/";
    243243
    244244        nbdirs = 0;
     
    264264                if (str_size(subdir_path) + str_size(path) + 1 <= PATH_MAX)
    265265                        str_append(subdir_path, PATH_MAX, path);
    266                 if (path[str_size(path)-1] != '/' &&
     266                if (path[str_size(path) - 1] != '/' &&
    267267                    str_size(subdir_path) + str_size(trailing_slash) + 1 <= PATH_MAX)
    268268                        str_append(subdir_path, PATH_MAX, trailing_slash);
     
    328328                help_cmd_ls(HELP_SHORT);
    329329                printf(
    330                 "Usage:  %s [options] [path]\n"
    331                 "If not path is given, the current working directory is used.\n"
    332                 "Options:\n"
    333                 "  -h, --help       A short option summary\n"
    334                 "  -u, --unsort     Do not sort directory entries\n"
    335                 "  -r, --recursive  List subdirectories recursively\n",
    336                 cmdname);
     330                    "Usage:  %s [options] [path]\n"
     331                    "If not path is given, the current working directory is used.\n"
     332                    "Options:\n"
     333                    "  -h, --help       A short option summary\n"
     334                    "  -u, --unsort     Do not sort directory entries\n"
     335                    "  -r, --recursive  List subdirectories recursively\n",
     336                    cmdname);
    337337        }
    338338
Note: See TracChangeset for help on using the changeset viewer.