[svn-commits] pabelanger: branch 1.4 r275290 - /branches/1.4/main/cli.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri Jul 9 14:28:52 CDT 2010


Author: pabelanger
Date: Fri Jul  9 14:28:48 2010
New Revision: 275290

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=275290
Log:
fix tab-completion for unload command.

Reported by: junky
Patches:
      unload_vs_mod_unload.diff uploaded by junky (license 177)
Tested by: pabelanger

Modified:
    branches/1.4/main/cli.c

Modified: branches/1.4/main/cli.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.4/main/cli.c?view=diff&rev=275290&r1=275289&r2=275290
==============================================================================
--- branches/1.4/main/cli.c (original)
+++ branches/1.4/main/cli.c Fri Jul  9 14:28:48 2010
@@ -1235,6 +1235,11 @@
 	return ast_module_helper(line, word, pos, state, 1, 1);
 }
 
+static char *complete_mod_2_nr(const char *line, const char *word, int pos, int state)
+{
+        return ast_module_helper(line, word, pos, state, 1, 0);
+}
+
 static char *complete_mod_3_nr(const char *line, const char *word, int pos, int state)
 {
 	return ast_module_helper(line, word, pos, state, 2, 0);
@@ -1439,7 +1444,7 @@
 static struct ast_cli_entry cli_module_unload_deprecated = {
 	{ "unload", NULL },
 	handle_unload_deprecated, NULL,
-	NULL, complete_mod_2 };
+	NULL, complete_mod_2_nr };
 
 static struct ast_cli_entry cli_show_uptime_deprecated = {
 	{ "show", "uptime", NULL },




More information about the svn-commits mailing list