Index: apps/app_math.c =================================================================== RCS file: /usr/cvsroot/asterisk/apps/app_math.c,v retrieving revision 1.10 diff -u -r1.10 app_math.c --- apps/app_math.c 9 Jun 2005 22:59:08 -0000 1.10 +++ apps/app_math.c 11 Jun 2005 17:46:47 -0000 @@ -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;