dect
/
asterisk
Archived
13
0
Fork 0

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
This commit is contained in:
russell 2005-09-26 20:53:33 +00:00
parent 0a8e053db6
commit 5478cd2e61
1 changed files with 1 additions and 2 deletions

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;