From: Russell Bryant Date: Mon, 26 Sep 2005 20:53:33 +0000 (+0000) Subject: move variable declaration to the beginning of the function (issue #5299) X-Git-Tag: 1.2.0-beta2~252 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=da7ca691b23910521a889ea79ed646d442303333;p=thirdparty%2Fasterisk.git move variable declaration to the beginning of the function (issue #5299) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6667 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_enumlookup.c b/apps/app_enumlookup.c index 59aa4312bf..70a5130ab5 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;