[Asterisk-cvs] asterisk/apps app_db.c,1.10,1.11
markster at lists.digium.com
markster at lists.digium.com
Sun May 8 13:02:03 CDT 2005
Update of /usr/cvsroot/asterisk/apps
In directory mongoose.digium.com:/tmp/cvs-serv24173/apps
Modified Files:
app_db.c
Log Message:
Convert app_db to function variables (bug #4201)
Index: app_db.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_db.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- app_db.c 5 May 2005 03:16:07 -0000 1.10
+++ app_db.c 8 May 2005 17:08:25 -0000 1.11
@@ -137,7 +137,13 @@
{
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 @@
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? */
More information about the svn-commits
mailing list