diff parser-cfg.c @ 29560:61b1e80faf63

Move variable declaration into block where it is used and make it const.
author reimar
date Mon, 31 Aug 2009 09:41:27 +0000
parents 8fd1ec0984b9
children c1a3f1bbba26
line wrap: on
line diff
--- 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;