[MPlayer-cvslog] r32219 - trunk/libmenu/menu.c
diego
subversion at mplayerhq.hu
Mon Sep 13 05:56:24 CEST 2010
Author: diego
Date: Mon Sep 13 05:56:24 2010
New Revision: 32219
Log:
const-correctness for the menu_info_t OSD menu info declarations
Modified:
trunk/libmenu/menu.c
Modified: trunk/libmenu/menu.c
==============================================================================
--- trunk/libmenu/menu.c Mon Sep 13 05:54:37 2010 (r32218)
+++ trunk/libmenu/menu.c Mon Sep 13 05:56:24 2010 (r32219)
@@ -40,17 +40,17 @@
#include "m_struct.h"
#include "menu.h"
-extern menu_info_t menu_info_cmdlist;
-extern menu_info_t menu_info_chapsel;
-extern menu_info_t menu_info_pt;
-extern menu_info_t menu_info_filesel;
-extern menu_info_t menu_info_txt;
-extern menu_info_t menu_info_console;
-extern menu_info_t menu_info_pref;
-extern menu_info_t menu_info_dvbsel;
+extern const menu_info_t menu_info_cmdlist;
+extern const menu_info_t menu_info_chapsel;
+extern const menu_info_t menu_info_pt;
+extern const menu_info_t menu_info_filesel;
+extern const menu_info_t menu_info_txt;
+extern const menu_info_t menu_info_console;
+extern const menu_info_t menu_info_pref;
+extern const menu_info_t menu_info_dvbsel;
-menu_info_t* menu_info_list[] = {
+const menu_info_t * const menu_info_list[] = {
&menu_info_pt,
&menu_info_cmdlist,
&menu_info_chapsel,
@@ -105,7 +105,7 @@ static menu_cmd_bindings_t *get_cmd_bind
static int menu_parse_config(char* buffer) {
char *element,*body, **attribs, *name;
- menu_info_t* minfo = NULL;
+ const menu_info_t* minfo = NULL;
int r,i;
ASX_Parser_t* parser = asx_parser_new();
More information about the MPlayer-cvslog
mailing list