mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-13 00:04:53 +00:00
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
This commit is contained in:
18
main/db.c
18
main/db.c
@@ -522,11 +522,11 @@ struct ast_cli_entry cli_database[] = {
|
||||
database_deltree_usage },
|
||||
};
|
||||
|
||||
static int manager_dbput(struct mansession *s, struct message *m)
|
||||
static int manager_dbput(struct mansession *s, const struct message *m)
|
||||
{
|
||||
char *family = astman_get_header(m, "Family");
|
||||
char *key = astman_get_header(m, "Key");
|
||||
char *val = astman_get_header(m, "Val");
|
||||
const char *family = astman_get_header(m, "Family");
|
||||
const char *key = astman_get_header(m, "Key");
|
||||
const char *val = astman_get_header(m, "Val");
|
||||
int res;
|
||||
|
||||
if (ast_strlen_zero(family)) {
|
||||
@@ -542,7 +542,7 @@ static int manager_dbput(struct mansession *s, struct message *m)
|
||||
return 0;
|
||||
}
|
||||
|
||||
res = ast_db_put(family, key, val);
|
||||
res = ast_db_put(family, key, (char *) val);
|
||||
if (res) {
|
||||
astman_send_error(s, m, "Failed to update entry");
|
||||
} else {
|
||||
@@ -551,12 +551,12 @@ static int manager_dbput(struct mansession *s, struct message *m)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int manager_dbget(struct mansession *s, struct message *m)
|
||||
static int manager_dbget(struct mansession *s, const struct message *m)
|
||||
{
|
||||
char *id = astman_get_header(m,"ActionID");
|
||||
const char *id = astman_get_header(m,"ActionID");
|
||||
char idText[256] = "";
|
||||
char *family = astman_get_header(m, "Family");
|
||||
char *key = astman_get_header(m, "Key");
|
||||
const char *family = astman_get_header(m, "Family");
|
||||
const char *key = astman_get_header(m, "Key");
|
||||
char tmp[256];
|
||||
int res;
|
||||
|
||||
|
Reference in New Issue
Block a user