[asterisk-commits] qwell: trunk r51242 - in /trunk: ./
main/channel.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Thu Jan 18 11:36:17 MST 2007
Author: qwell
Date: Thu Jan 18 12:36:17 2007
New Revision: 51242
URL: http://svn.digium.com/view/asterisk?view=rev&rev=51242
Log:
Merged revisions 51241 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r51241 | qwell | 2007-01-18 12:28:29 -0600 (Thu, 18 Jan 2007) | 2 lines
Fix an issue with deprecated commands
........
Modified:
trunk/ (props changed)
trunk/main/channel.c
Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.
Modified: trunk/main/channel.c
URL: http://svn.digium.com/view/asterisk/trunk/main/channel.c?view=diff&rev=51242&r1=51241&r2=51242
==============================================================================
--- trunk/main/channel.c (original)
+++ trunk/main/channel.c Thu Jan 18 12:36:17 2007
@@ -218,7 +218,7 @@
{
struct chanlist *cl = NULL;
- if (argc != 3)
+ if (argc != 4)
return RESULT_SHOWUSAGE;
if (AST_LIST_LOCK(&channels)) {
@@ -227,14 +227,14 @@
}
AST_LIST_TRAVERSE(&backends, cl, list) {
- if (!strncasecmp(cl->tech->type, argv[2], strlen(cl->tech->type))) {
+ if (!strncasecmp(cl->tech->type, argv[3], strlen(cl->tech->type))) {
break;
}
}
if (!cl) {
- ast_cli(fd, "\n%s is not a registered channel driver.\n", argv[2]);
+ ast_cli(fd, "\n%s is not a registered channel driver.\n", argv[3]);
AST_LIST_UNLOCK(&channels);
return RESULT_FAILURE;
}
@@ -274,7 +274,7 @@
int wordlen;
char *ret = NULL;
- if (pos != 2)
+ if (pos != 3)
return NULL;
wordlen = strlen(word);
More information about the asterisk-commits
mailing list