Ignore:
Timestamp:
2008-08-29T11:07:22Z (16 years ago)
Author:
Tim Post <echo@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0c4f46a
Parents:
3771a6e
Message:

Just make cli_count_args() a function

File:
1 edited

Legend:

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

    r3771a6e r43e02a6  
    3232#include <stdlib.h>
    3333#include <string.h>
     34
     35#include "config.h"
    3436#include "entry.h"
    3537#include "help.h"
     
    3840#include "builtins.h"
    3941#include "errors.h"
     42#include "util.h"
    4043
    4144static char *cmdname = "help";
     
    9699        int level = HELP_SHORT;
    97100
    98         for (argc = 0; argv[argc] != NULL; argc ++);
     101        argc = cli_count_args(argv);
    99102
    100103        if (argc > 3) {
Note: See TracChangeset for help on using the changeset viewer.