[asterisk-commits] russell: trunk r47378 - in /trunk: ./ main/cli.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Thu Nov 9 09:30:06 MST 2006


Author: russell
Date: Thu Nov  9 10:30:06 2006
New Revision: 47378

URL: http://svn.digium.com/view/asterisk?view=rev&rev=47378
Log:
Merged revisions 47377 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r47377 | russell | 2006-11-09 11:28:15 -0500 (Thu, 09 Nov 2006) | 2 lines

fix tab completion for "core debug channel" and "core no debug channel"

........

Modified:
    trunk/   (props changed)
    trunk/main/cli.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.

Modified: trunk/main/cli.c
URL: http://svn.digium.com/view/asterisk/trunk/main/cli.c?view=diff&rev=47378&r1=47377&r2=47378
==============================================================================
--- trunk/main/cli.c (original)
+++ trunk/main/cli.c Thu Nov  9 10:30:06 2006
@@ -855,6 +855,11 @@
 	return ast_complete_channels(line, word, pos, state, 3);
 }
 
+static char *complete_ch_5(const char *line, const char *word, int pos, int state)
+{
+	return ast_complete_channels(line, word, pos, state, 4);
+}
+
 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);
@@ -986,11 +991,11 @@
 
 	{ { "core", "debug", "channel", NULL },
 	handle_debugchan, "Enable debugging on a channel",
-	debugchan_help, complete_ch_3 },
+	debugchan_help, complete_ch_4 },
 
 	{ { "core", "no", "debug", "channel", NULL },
 	handle_nodebugchan, "Disable debugging on a channel",
-	nodebugchan_help, complete_ch_3 },
+	nodebugchan_help, complete_ch_5 },
 
 	{ { "core", "set", "debug", NULL },
 	handle_debug, "Set level of debug chattiness",



More information about the asterisk-commits mailing list