mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-14 08:31:02 +00:00
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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user