]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fixes the argument order in definition of new_find_extension().
authorDavid Brooks <dbrooks@digium.com>
Wed, 10 Jun 2009 20:35:05 +0000 (20:35 +0000)
committerDavid Brooks <dbrooks@digium.com>
Wed, 10 Jun 2009 20:35:05 +0000 (20:35 +0000)
In the definition of new_find_extension(), the arguments 'callerid' and
'label' were swapped. The prototype declaration and all calls to the
function are ordered 'callerid' then 'label', but the function itself
was ordered 'label' then 'callerid'.

(closes issue #15303)
Reported by: JimDickenson

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@199996 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/pbx.c

index b4e5f1189a4caa6962bc674024defbba6a61a6d5..8fdc769c957849ba1321ca6b3a3c4220bc51ade4 100644 (file)
@@ -1234,7 +1234,7 @@ static char *action2str(enum ext_match_t action)
 
 #endif
 
-static void new_find_extension(const char *str, struct scoreboard *score, struct match_char *tree, int length, int spec, const char *label, const char *callerid, enum ext_match_t action)
+static void new_find_extension(const char *str, struct scoreboard *score, struct match_char *tree, int length, int spec, const char *callerid, const char *label, enum ext_match_t action)
 {
        struct match_char *p; /* note minimal stack storage requirements */
        struct ast_exten pattern = { .label = label };