diff options
author | Russell Bryant <russell@russellbryant.com> | 2005-09-26 20:53:33 +0000 |
---|---|---|
committer | Russell Bryant <russell@russellbryant.com> | 2005-09-26 20:53:33 +0000 |
commit | da7ca691b23910521a889ea79ed646d442303333 (patch) | |
tree | c02751050586e95182cc3bf018193523ac46d3de /apps | |
parent | 02c80ab20b4ba5787ac4212b77d340dbcbb9a7dc (diff) |
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
Diffstat (limited to 'apps')
-rwxr-xr-x | apps/app_enumlookup.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/app_enumlookup.c b/apps/app_enumlookup.c index 59aa4312b..70a5130ab 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; |