# HG changeset patch # User reimar # Date 1251711687 0 # Node ID 61b1e80faf639dc96cee93059b7b73d0d648e88a # Parent 8fd1ec0984b9ceb9e92a46b47b7fb48a2e330415 Move variable declaration into block where it is used and make it const. diff -r 8fd1ec0984b9 -r 61b1e80faf63 parser-cfg.c --- a/parser-cfg.c Mon Aug 31 09:40:04 2009 +0000 +++ b/parser-cfg.c Mon Aug 31 09:41:27 2009 +0000 @@ -252,7 +252,6 @@ { 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 @@ 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;