[MPlayer-cvslog] r37707 - in trunk/libmenu: menu_chapsel.c menu_cmdlist.c menu_console.c menu_dvbin.c menu_filesel.c menu_param.c menu_pt.c menu_txt.c
reimar
subversion at mplayerhq.hu
Sat Feb 13 18:28:08 CET 2016
Author: reimar
Date: Sat Feb 13 18:28:08 2016
New Revision: 37707
Log:
libmenu: Add const to menu configuration defaults.
Patch by Lauri Kasanen [cand gmx.com].
Modified:
trunk/libmenu/menu_chapsel.c
trunk/libmenu/menu_cmdlist.c
trunk/libmenu/menu_console.c
trunk/libmenu/menu_dvbin.c
trunk/libmenu/menu_filesel.c
trunk/libmenu/menu_param.c
trunk/libmenu/menu_pt.c
trunk/libmenu/menu_txt.c
Modified: trunk/libmenu/menu_chapsel.c
==============================================================================
--- trunk/libmenu/menu_chapsel.c Sat Feb 13 18:27:30 2016 (r37706)
+++ trunk/libmenu/menu_chapsel.c Sat Feb 13 18:28:08 2016 (r37707)
@@ -54,7 +54,7 @@ struct menu_priv_s {
char* fmt_with_time;
};
-static struct menu_priv_s cfg_dflt = {
+static const struct menu_priv_s cfg_dflt = {
MENU_LIST_PRIV_DFLT,
"Select chapter",
0,
Modified: trunk/libmenu/menu_cmdlist.c
==============================================================================
--- trunk/libmenu/menu_cmdlist.c Sat Feb 13 18:27:30 2016 (r37706)
+++ trunk/libmenu/menu_cmdlist.c Sat Feb 13 18:28:08 2016 (r37707)
@@ -55,7 +55,7 @@ struct menu_priv_s {
#define ST_OFF(m) M_ST_OFF(struct menu_priv_s, m)
-static struct menu_priv_s cfg_dflt = {
+static const struct menu_priv_s cfg_dflt = {
MENU_LIST_PRIV_DFLT,
};
Modified: trunk/libmenu/menu_console.c
==============================================================================
--- trunk/libmenu/menu_console.c Sat Feb 13 18:27:30 2016 (r37706)
+++ trunk/libmenu/menu_console.c Sat Feb 13 18:28:08 2016 (r37707)
@@ -81,7 +81,7 @@ struct menu_priv_s {
int raw_child;
};
-static struct menu_priv_s cfg_dflt = {
+static const struct menu_priv_s cfg_dflt = {
NULL,
0,
0,
Modified: trunk/libmenu/menu_dvbin.c
==============================================================================
--- trunk/libmenu/menu_dvbin.c Sat Feb 13 18:27:30 2016 (r37706)
+++ trunk/libmenu/menu_dvbin.c Sat Feb 13 18:28:08 2016 (r37707)
@@ -73,7 +73,7 @@ static const m_option_t cfg_fields[] = {
};
-static struct menu_priv_s cfg_dflt = {
+static const struct menu_priv_s cfg_dflt = {
MENU_LIST_PRIV_DFLT,
"Select a channel: ",
"channels.conf",
Modified: trunk/libmenu/menu_filesel.c
==============================================================================
--- trunk/libmenu/menu_filesel.c Sat Feb 13 18:27:30 2016 (r37706)
+++ trunk/libmenu/menu_filesel.c Sat Feb 13 18:28:08 2016 (r37707)
@@ -71,7 +71,7 @@ struct menu_priv_s {
char* filter;
};
-static struct menu_priv_s cfg_dflt = {
+static const struct menu_priv_s cfg_dflt = {
MENU_LIST_PRIV_DFLT,
NULL,
Modified: trunk/libmenu/menu_param.c
==============================================================================
--- trunk/libmenu/menu_param.c Sat Feb 13 18:27:30 2016 (r37706)
+++ trunk/libmenu/menu_param.c Sat Feb 13 18:28:08 2016 (r37707)
@@ -62,7 +62,7 @@ struct menu_priv_s {
int hide_na;
};
-static struct menu_priv_s cfg_dflt = {
+static const struct menu_priv_s cfg_dflt = {
MENU_LIST_PRIV_DFLT,
NULL,
0,
Modified: trunk/libmenu/menu_pt.c
==============================================================================
--- trunk/libmenu/menu_pt.c Sat Feb 13 18:27:30 2016 (r37706)
+++ trunk/libmenu/menu_pt.c Sat Feb 13 18:28:08 2016 (r37707)
@@ -53,7 +53,7 @@ struct menu_priv_s {
int auto_close;
};
-static struct menu_priv_s cfg_dflt = {
+static const struct menu_priv_s cfg_dflt = {
MENU_LIST_PRIV_DFLT,
"Jump to",
0
Modified: trunk/libmenu/menu_txt.c
==============================================================================
--- trunk/libmenu/menu_txt.c Sat Feb 13 18:27:30 2016 (r37706)
+++ trunk/libmenu/menu_txt.c Sat Feb 13 18:28:08 2016 (r37707)
@@ -46,7 +46,7 @@ struct menu_priv_s {
char* file;
};
-static struct menu_priv_s cfg_dflt = {
+static const struct menu_priv_s cfg_dflt = {
NULL,
0,
0,
More information about the MPlayer-cvslog
mailing list