diff options
Diffstat (limited to 'funcs/func_odbc.c')
-rw-r--r-- | funcs/func_odbc.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/funcs/func_odbc.c b/funcs/func_odbc.c index e014b633c..06e4a6ada 100644 --- a/funcs/func_odbc.c +++ b/funcs/func_odbc.c @@ -1417,7 +1417,8 @@ static char *cli_odbc_read(struct ast_cli_entry *e, int cmd, struct ast_cli_args AST_RWLIST_UNLOCK(&queries); return NULL; } else if (a->pos == 4) { - return a->n == 0 ? ast_strdup("exec") : NULL; + static const char * const completions[] = { "exec", NULL }; + return ast_cli_complete(a->word, completions, a->n); } else { return NULL; } @@ -1623,7 +1624,8 @@ static char *cli_odbc_write(struct ast_cli_entry *e, int cmd, struct ast_cli_arg AST_RWLIST_UNLOCK(&queries); return NULL; } else if (a->pos == 5) { - return a->n == 0 ? ast_strdup("exec") : NULL; + static const char * const completions[] = { "exec", NULL }; + return ast_cli_complete(a->word, completions, a->n); } else { return NULL; } |