[MPlayer-cvslog] r31002 - trunk/input/input.c

diego subversion at mplayerhq.hu
Sun Apr 4 18:15:38 CEST 2010


Author: diego
Date: Sun Apr  4 18:15:38 2010
New Revision: 31002

Log:
Mark input-related m_option_t arrays as const.

Modified:
   trunk/input/input.c

Modified: trunk/input/input.c
==============================================================================
--- trunk/input/input.c	Sun Apr  4 18:15:08 2010	(r31001)
+++ trunk/input/input.c	Sun Apr  4 18:15:38 2010	(r31002)
@@ -599,7 +599,7 @@ static int mp_input_print_key_list(m_opt
 static int mp_input_print_cmd_list(m_option_t* cfg);
 
 // Our command line options
-static m_option_t input_conf[] = {
+static const m_option_t input_conf[] = {
   { "conf", &config_file, CONF_TYPE_STRING, CONF_GLOBAL, 0, 0, NULL },
   { "ar-dev", &ar_dev, CONF_TYPE_STRING, CONF_GLOBAL, 0, 0, NULL },
   { "ar-delay", &ar_delay, CONF_TYPE_INT, CONF_GLOBAL, 0, 0, NULL },
@@ -613,7 +613,7 @@ static m_option_t input_conf[] = {
   { NULL, NULL, 0, 0, 0, 0, NULL}
 };
 
-static m_option_t mp_input_opts[] = {
+static const m_option_t mp_input_opts[] = {
   { "input", &input_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
   { "nojoystick", &use_joystick,  CONF_TYPE_FLAG, CONF_GLOBAL, 1, 0, NULL },
   { "joystick", &use_joystick,  CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL },


More information about the MPlayer-cvslog mailing list