[asterisk-dev] [svn-commits] mvanbaak: branch mvanbaak/cli-command-audit r101579 - in /team/mvanbaak/cli-c...
Russell Bryant
russell at digium.com
Thu Jan 31 22:36:26 CST 2008
SVN commits to the Digium repositories wrote:
> Author: mvanbaak
> Date: Thu Jan 31 16:05:44 2008
> New Revision: 101579
>
> URL: http://svn.digium.com/view/asterisk?view=rev&rev=101579
> Log:
> add patches from mantis to this branch
> - if (a->argc != 2)
> + if (a->argc != 3)
> return CLI_SHOWUSAGE;
You have this type of change in a bunch of places. Instead of changing
it that way, a better thing to do is to change it to:
if (a->argc != e->args)
That way, no matter how many words make up the CLI command, you won't
have to change it again.
--
Russell Bryant
Senior Software Engineer
Open Source Team Lead
Digium, Inc.
More information about the asterisk-dev
mailing list