From 1cd2feed03969cf7753d288cd99c0ea8a3cecbff Mon Sep 17 00:00:00 2001 From: reimar Date: Mon, 31 Aug 2009 09:41:27 +0000 Subject: [PATCH] Move variable declaration into block where it is used and make it const. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29602 b3059339-0415-0410-9bf9-f77b7e298cf2 --- parser-cfg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parser-cfg.c b/parser-cfg.c index ff3d9f2d34..8dc0744b0d 100644 --- a/parser-cfg.c +++ b/parser-cfg.c @@ -252,7 +252,6 @@ int m_config_preparse_command_line(m_config_t *config, int argc, char **argv) { int msg_lvl, i, r, ret = 0; char* arg; - m_option_t* opt; // Hack to shutup the parser error messages. msg_lvl = mp_msg_levels[MSGT_CFGPARSER]; @@ -261,6 +260,7 @@ int m_config_preparse_command_line(m_config_t *config, int argc, char **argv) config->mode = M_COMMAND_LINE_PRE_PARSE; for(i = 1 ; i < argc ; i++) { + const m_option_t* opt; arg = argv[i]; // Ignore non option if(arg[0] != '-' || arg[1] == 0) continue;