changeset 25227:75837c33484b

Mark more m_option_t uses as const
author reimar
date Sun, 02 Dec 2007 15:46:44 +0000
parents 78ac40115c15
children 475c6659f31c
files parser-mecmd.c parser-mpcmd.c
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/parser-mecmd.c	Sun Dec 02 15:43:30 2007 +0000
+++ b/parser-mecmd.c	Sun Dec 02 15:46:44 2007 +0000
@@ -86,7 +86,7 @@
 			
     if ((no_more_opts == 0) && (*opt == '-') && (*(opt+1) != 0)) /* option */
       {
-	m_option_t* mp_opt = NULL;
+	const m_option_t* mp_opt = NULL;
 	/* remove trailing '-' */
 	opt++;
 	mp_msg(MSGT_CFGPARSER, MSGL_DBG3, "this_opt = option: %s\n", opt);
--- a/parser-mpcmd.c	Sun Dec 02 15:43:30 2007 +0000
+++ b/parser-mpcmd.c	Sun Dec 02 15:46:44 2007 +0000
@@ -170,7 +170,7 @@
 	  else
 	    last_parent->flags &= ~PLAY_TREE_RND;
 	} else {
-	  m_option_t* mp_opt = NULL;
+	  const m_option_t* mp_opt = NULL;
 	  play_tree_t* entry = NULL;
 
 	  tmp = is_entry_option(opt,(i+1<argc) ? argv[i + 1] : NULL,&entry);