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
This commit is contained in:
Russell Bryant
2005-09-26 20:53:33 +00:00
parent 02c80ab20b
commit da7ca691b2

View File

@@ -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;