Subversion Repositories HelenOS

Rev

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

Rev 3346 Rev 3376
Line 68... Line 68...
68
    int fd;
68
    int fd;
69
    char *buff = NULL;
69
    char *buff = NULL;
70
 
70
 
71
    DIR *dirp;
71
    DIR *dirp;
72
 
72
 
73
    /* Count the arguments */
-
 
74
    for (argc = 0; argv[argc] != NULL; argc ++);
73
    argc = cli_count_args(argv);
75
 
74
 
76
    if (argc == 1) {
75
    if (argc == 1) {
77
        printf("%s - incorrect number of arguments. Try `help %s extended'\n",
76
        printf("%s - incorrect number of arguments. Try `help %s extended'\n",
78
            cmdname, cmdname);
77
            cmdname, cmdname);
79
        return CMD_FAILURE;
78
        return CMD_FAILURE;