mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
reduce stack consumption for AMI and AMI/HTTP requests by nearly 20K in most cases
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@49676 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1927,10 +1927,10 @@ static struct ast_cli_entry cli_features[] = {
|
||||
};
|
||||
|
||||
/*! \brief Dump lot status */
|
||||
static int manager_parking_status( struct mansession *s, struct message *m )
|
||||
static int manager_parking_status( struct mansession *s, const struct message *m)
|
||||
{
|
||||
struct parkeduser *cur;
|
||||
char *id = astman_get_header(m,"ActionID");
|
||||
const char *id = astman_get_header(m,"ActionID");
|
||||
char idText[256] = "";
|
||||
|
||||
if (!ast_strlen_zero(id))
|
||||
@@ -1974,11 +1974,11 @@ static char mandescr_park[] =
|
||||
" *Channel2: Channel to announce park info to (and return to if timeout)\n"
|
||||
" Timeout: Number of milliseconds to wait before callback.\n";
|
||||
|
||||
static int manager_park(struct mansession *s, struct message *m)
|
||||
static int manager_park(struct mansession *s, const struct message *m)
|
||||
{
|
||||
char *channel = astman_get_header(m, "Channel");
|
||||
char *channel2 = astman_get_header(m, "Channel2");
|
||||
char *timeout = astman_get_header(m, "Timeout");
|
||||
const char *channel = astman_get_header(m, "Channel");
|
||||
const char *channel2 = astman_get_header(m, "Channel2");
|
||||
const char *timeout = astman_get_header(m, "Timeout");
|
||||
char buf[BUFSIZ];
|
||||
int to = 0;
|
||||
int res = 0;
|
||||
|
Reference in New Issue
Block a user