Subversion Repositories HelenOS

Rev

Rev 3364 | Rev 3413 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3364 Rev 3376
Line 150... Line 150...
150
    unsigned int argc;
150
    unsigned int argc;
151
    unsigned int scope;
151
    unsigned int scope;
152
    char *buff;
152
    char *buff;
153
    DIR *dirp;
153
    DIR *dirp;
154
 
154
 
155
    /* Count the arguments */
-
 
156
    for (argc = 0; argv[argc] != NULL; argc ++);
155
    argc = cli_count_args(argv);
157
 
156
 
158
    buff = (char *) malloc(PATH_MAX);
157
    buff = (char *) malloc(PATH_MAX);
159
    if (NULL == buff) {
158
    if (NULL == buff) {
160
        cli_error(CL_ENOMEM, "%s: ", cmdname);
159
        cli_error(CL_ENOMEM, "%s: ", cmdname);
161
        return CMD_FAILURE;
160
        return CMD_FAILURE;