move variable declaration to the beginning of the function (issue #5299)
authorRussell Bryant <russell@russellbryant.com>
Mon, 26 Sep 2005 20:53:33 +0000 (20:53 +0000)
committerRussell Bryant <russell@russellbryant.com>
Mon, 26 Sep 2005 20:53:33 +0000 (20:53 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6667 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_enumlookup.c

index 59aa431..70a5130 100755 (executable)
@@ -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;