diff options
author | Kevin P. Fleming <kpfleming@digium.com> | 2007-01-05 22:43:18 +0000 |
---|---|---|
committer | Kevin P. Fleming <kpfleming@digium.com> | 2007-01-05 22:43:18 +0000 |
commit | 87b9abc892ff976733026d90e637cb243bc8d358 (patch) | |
tree | 19f29aed9ad9813da3843062a7089d28de6108d4 /main/pbx.c | |
parent | a9c3429b07b9db7be2df683660a745653bb05906 (diff) |
Merged revisions 49676 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r49676 | kpfleming | 2007-01-05 16:16:33 -0600 (Fri, 05 Jan 2007) | 2 lines
reduce stack consumption for AMI and AMI/HTTP requests by nearly 20K in most cases
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@49678 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/pbx.c')
-rw-r--r-- | main/pbx.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/main/pbx.c b/main/pbx.c index 946395304..8d8d1899d 100644 --- a/main/pbx.c +++ b/main/pbx.c @@ -3422,7 +3422,7 @@ static int handle_show_dialplan(int fd, int argc, char *argv[]) } /*! \brief Send ack once */ -static void manager_dpsendack(struct mansession *s, struct message *m) +static void manager_dpsendack(struct mansession *s, const struct message *m) { astman_send_listack(s, m, "DialPlan list will follow", "start"); } @@ -3431,8 +3431,10 @@ static void manager_dpsendack(struct mansession *s, struct message *m) * XXX this function is similar but not exactly the same as the CLI's * show dialplan. Must check whether the difference is intentional or not. */ -static int manager_show_dialplan_helper(struct mansession *s, struct message *m, - const char *actionidtext, const char *context, char *exten, struct dialplan_counters *dpc, struct ast_include *rinclude) +static int manager_show_dialplan_helper(struct mansession *s, const struct message *m, + const char *actionidtext, const char *context, + const char *exten, struct dialplan_counters *dpc, + struct ast_include *rinclude) { struct ast_context *c; int res=0, old_total_exten = dpc->total_exten; @@ -3574,10 +3576,10 @@ static int manager_show_dialplan_helper(struct mansession *s, struct message *m, } /*! \brief Manager listing of dial plan */ -static int manager_show_dialplan(struct mansession *s, struct message *m) +static int manager_show_dialplan(struct mansession *s, const struct message *m) { - char *exten = NULL, *context = NULL; - char *id = astman_get_header(m, "ActionID"); + const char *exten, *context; + const char *id = astman_get_header(m, "ActionID"); char idtext[256]; int res; |