aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2009-05-23 13:31:56 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2009-05-23 13:31:56 +0000
commit5e450bcbaf6511eb97d3187a7f8e341631303a4d (patch)
tree516ce916cc846445d90f00f66568d29bcfb2027f /include
parent07d13a0190708afe39cf9a9961f37a1c3199765f (diff)
Correct example for CLI autocompletion (generation)
Reported by Atis on #asterisk-dev git-svn-id: http://svn.digium.com/svn/asterisk/trunk@196488 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include')
-rw-r--r--include/asterisk/cli.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/asterisk/cli.h b/include/asterisk/cli.h
index f03a39ffe..e3f30879e 100644
--- a/include/asterisk/cli.h
+++ b/include/asterisk/cli.h
@@ -97,7 +97,7 @@ void ast_cli(int fd, const char *fmt, ...)
\code
static char *test_new_cli(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a)
{
- static const char * const choices = { "one", "two", "three", NULL };
+ static const char * const choices[] = { "one", "two", "three", NULL };
switch (cmd) {
case CLI_INIT:
@@ -181,7 +181,7 @@ struct ast_cli_entry {
\code
char *my_generate(const char *line, const char *word, int pos, int n)
{
- static const char * const choices = { "one", "two", "three", NULL };
+ static const char * const choices[] = { "one", "two", "three", NULL };
if (pos == 2)
return ast_cli_complete(word, choices, n);
else