aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-09-26 20:53:33 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-09-26 20:53:33 +0000
commit5478cd2e6166f116850da04f97abed3d2377fa9d (patch)
treec02751050586e95182cc3bf018193523ac46d3de /apps
parent0a8e053db684bbd662d65f355f65fe33efe5d632 (diff)
move variable declaration to the beginning of the function (issue #5299)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6667 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rwxr-xr-xapps/app_enumlookup.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/app_enumlookup.c b/apps/app_enumlookup.c
index 59aa4312b..70a5130ab 100755
--- a/apps/app_enumlookup.c
+++ b/apps/app_enumlookup.c
@@ -83,6 +83,7 @@ static int enumlookup_exec(struct ast_channel *chan, void *data)
char tmp[256];
char *c,*t;
static int dep_warning=0;
+ struct localuser *u;
if (!dep_warning) {
ast_log(LOG_WARNING, "The application EnumLookup is deprecated. Please use the ENUMLOOKUP() function instead.\n");
@@ -91,8 +92,6 @@ static int enumlookup_exec(struct ast_channel *chan, void *data)
tech[0] = '\0';
- struct localuser *u;
-
if (!data || ast_strlen_zero(data)) {
ast_log(LOG_WARNING, "EnumLookup requires an argument (extension)\n");
res = 0;