Update of /usr/cvsroot/asterisk/apps
In directory mongoose.digium.com:/tmp/cvs-serv29326/apps

Modified Files:
        app_math.c 
Log Message:
move deprecation warning until after all variable declarations (bug #4514)


Index: app_math.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_math.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- app_math.c  9 Jun 2005 22:59:08 -0000       1.10
+++ app_math.c  12 Jun 2005 16:43:37 -0000      1.11
@@ -82,11 +82,6 @@
        int iaction=-1;
        static int deprecation_warning = 0;
 
-       if (!deprecation_warning) {
-               ast_log(LOG_WARNING, "Math() is deprecated, please use 
Set(var=${MATH(...)} instead.\n");
-               deprecation_warning = 1;
-       }
-
        /* dunno, big calulations :D */
        char user_result[30];
 
@@ -95,6 +90,11 @@
                
        struct localuser *u;
 
+       if (!deprecation_warning) {
+               ast_log(LOG_WARNING, "Math() is deprecated, please use 
Set(var=${MATH(...)} instead.\n");
+               deprecation_warning = 1;
+       }
+
        if (!data) {
                ast_log(LOG_WARNING, "No parameters passed. !\n");
                return -1;

_______________________________________________
Asterisk-Cvs mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-cvs

Reply via email to