mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 20:20:07 +00:00
Convert app_db to function variables (bug #4201)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5604 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -137,7 +137,13 @@ static int put_exec(struct ast_channel *chan, void *data)
|
||||
{
|
||||
int arglen;
|
||||
char *argv, *value, *family, *key;
|
||||
static int dep_warning = 0;
|
||||
|
||||
if (!dep_warning) {
|
||||
ast_log(LOG_WARNING, "This application has been deprecated, please use the ${DB(family/key)} function instead.\n");
|
||||
dep_warning = 1;
|
||||
}
|
||||
|
||||
arglen = strlen(data);
|
||||
argv = alloca(arglen + 1);
|
||||
if (!argv) { /* Why would this fail? */
|
||||
@@ -172,7 +178,13 @@ static int get_exec(struct ast_channel *chan, void *data)
|
||||
int arglen;
|
||||
char *argv, *varname, *family, *key;
|
||||
char dbresult[256];
|
||||
static int dep_warning = 0;
|
||||
|
||||
if (!dep_warning) {
|
||||
ast_log(LOG_WARNING, "This application has been deprecated, please use the ${DB(family/key)} function instead.\n");
|
||||
dep_warning = 1;
|
||||
}
|
||||
|
||||
arglen = strlen(data);
|
||||
argv = alloca(arglen + 1);
|
||||
if (!argv) { /* Why would this fail? */
|
||||
|
Reference in New Issue
Block a user