[PATCH] libmenu: constify infos
Lauri Kasanen <[email protected]>
| Newsgroups | gmane.comp.video.mplayer.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi, This patch moves 1kb of data to rodata. - Lauri _______________________________________________ MPlayer-dev-eng mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/mplayer-dev-eng
const_libmenu.patch
(text/plain, 2.7 KB)
Index: libmenu/menu_chapsel.c
===================================================================
--- libmenu/menu_chapsel.c (revision 37696)
+++ libmenu/menu_chapsel.c (working copy)
@@ -54,7 +54,7 @@
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,
Index: libmenu/menu_cmdlist.c
===================================================================
--- libmenu/menu_cmdlist.c (revision 37696)
+++ libmenu/menu_cmdlist.c (working copy)
@@ -55,7 +55,7 @@
#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,
};
Index: libmenu/menu_console.c
===================================================================
--- libmenu/menu_console.c (revision 37696)
+++ libmenu/menu_console.c (working copy)
@@ -81,7 +81,7 @@
int raw_child;
};
-static struct menu_priv_s cfg_dflt = {
+static const struct menu_priv_s cfg_dflt = {
NULL,
0,
0,
Index: libmenu/menu_dvbin.c
===================================================================
--- libmenu/menu_dvbin.c (revision 37696)
+++ libmenu/menu_dvbin.c (working copy)
@@ -73,7 +73,7 @@
};
-static struct menu_priv_s cfg_dflt = {
+static const struct menu_priv_s cfg_dflt = {
MENU_LIST_PRIV_DFLT,
"Select a channel: ",
"channels.conf",
Index: libmenu/menu_filesel.c
===================================================================
--- libmenu/menu_filesel.c (revision 37696)
+++ libmenu/menu_filesel.c (working copy)
@@ -71,7 +71,7 @@
char* filter;
};
-static struct menu_priv_s cfg_dflt = {
+static const struct menu_priv_s cfg_dflt = {
MENU_LIST_PRIV_DFLT,
NULL,
Index: libmenu/menu_param.c
===================================================================
--- libmenu/menu_param.c (revision 37696)
+++ libmenu/menu_param.c (working copy)
@@ -62,7 +62,7 @@
int hide_na;
};
-static struct menu_priv_s cfg_dflt = {
+static const struct menu_priv_s cfg_dflt = {
MENU_LIST_PRIV_DFLT,
NULL,
0,
Index: libmenu/menu_pt.c
===================================================================
--- libmenu/menu_pt.c (revision 37696)
+++ libmenu/menu_pt.c (working copy)
@@ -53,7 +53,7 @@
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
Index: libmenu/menu_txt.c
===================================================================
--- libmenu/menu_txt.c (revision 37696)
+++ libmenu/menu_txt.c (working copy)
@@ -46,7 +46,7 @@
char* file;
};
-static struct menu_priv_s cfg_dflt = {
+static const struct menu_priv_s cfg_dflt = {
NULL,
0,
0,