changeset 30957:45b93bea8082

Mark cfg_fields m_option_t array as const.
author diego
date Sun, 04 Apr 2010 16:11:20 +0000
parents 389faed364e5
children d05a77bed63f
files libmenu/menu_chapsel.c libmenu/menu_cmdlist.c libmenu/menu_console.c libmenu/menu_dvbin.c libmenu/menu_filesel.c libmenu/menu_param.c libmenu/menu_pt.c libmenu/menu_txt.c
diffstat 8 files changed, 8 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/libmenu/menu_chapsel.c	Sun Apr 04 16:08:15 2010 +0000
+++ b/libmenu/menu_chapsel.c	Sun Apr 04 16:11:20 2010 +0000
@@ -61,7 +61,7 @@
 
 #define ST_OFF(m) M_ST_OFF(struct menu_priv_s,m)
 
-static m_option_t cfg_fields[] = {
+static const m_option_t cfg_fields[] = {
   MENU_LIST_PRIV_FIELDS,
   { "title", ST_OFF (title),  CONF_TYPE_STRING, 0, 0, 0, NULL },
   { "auto-close", ST_OFF (auto_close), CONF_TYPE_FLAG, 0, 0, 1, NULL },
--- a/libmenu/menu_cmdlist.c	Sun Apr 04 16:08:15 2010 +0000
+++ b/libmenu/menu_cmdlist.c	Sun Apr 04 16:11:20 2010 +0000
@@ -59,7 +59,7 @@
   MENU_LIST_PRIV_DFLT,
 };
 
-static m_option_t cfg_fields[] = {
+static const m_option_t cfg_fields[] = {
   MENU_LIST_PRIV_FIELDS,
   { "title",M_ST_OFF(struct menu_priv_s,p.title), CONF_TYPE_STRING, 0, 0, 0, NULL },
   { NULL, NULL, NULL, 0,0,0,NULL }
--- a/libmenu/menu_console.c	Sun Apr 04 16:08:15 2010 +0000
+++ b/libmenu/menu_console.c	Sun Apr 04 16:11:20 2010 +0000
@@ -110,7 +110,7 @@
 
 #define ST_OFF(m) M_ST_OFF(struct menu_priv_s,m)
 
-static m_option_t cfg_fields[] = {
+static const m_option_t cfg_fields[] = {
   { "prompt", ST_OFF(mp_prompt), CONF_TYPE_STRING, M_OPT_MIN, 1, 0, NULL },
   { "child-prompt", ST_OFF(child_prompt), CONF_TYPE_STRING, M_OPT_MIN, 1, 0, NULL },
   { "buffer-lines", ST_OFF(buf_lines), CONF_TYPE_INT, M_OPT_MIN, 5, 0, NULL },
--- a/libmenu/menu_dvbin.c	Sun Apr 04 16:08:15 2010 +0000
+++ b/libmenu/menu_dvbin.c	Sun Apr 04 16:11:20 2010 +0000
@@ -64,7 +64,7 @@
 #define ST_OFF(m) M_ST_OFF(struct menu_priv_s, m)
 #define mpriv (menu->priv)
 
-static m_option_t cfg_fields[] = {
+static const m_option_t cfg_fields[] = {
   MENU_LIST_PRIV_FIELDS,
   { "title", ST_OFF(title), CONF_TYPE_STRING, 0, 0, 0, NULL },
   { "auto-close", ST_OFF(auto_close), CONF_TYPE_FLAG, 0, 0, 1, NULL },
--- a/libmenu/menu_filesel.c	Sun Apr 04 16:08:15 2010 +0000
+++ b/libmenu/menu_filesel.c	Sun Apr 04 16:11:20 2010 +0000
@@ -81,7 +81,7 @@
 
 #define ST_OFF(m) M_ST_OFF(struct menu_priv_s,m)
 
-static m_option_t cfg_fields[] = {
+static const m_option_t cfg_fields[] = {
   MENU_LIST_PRIV_FIELDS,
   { "path", ST_OFF(path),  CONF_TYPE_STRING, 0, 0, 0, NULL },
   { "title", ST_OFF(title),  CONF_TYPE_STRING, 0, 0, 0, NULL },
--- a/libmenu/menu_param.c	Sun Apr 04 16:08:15 2010 +0000
+++ b/libmenu/menu_param.c	Sun Apr 04 16:11:20 2010 +0000
@@ -69,7 +69,7 @@
   1
 };
 
-static m_option_t cfg_fields[] = {
+static const m_option_t cfg_fields[] = {
   MENU_LIST_PRIV_FIELDS,
   { "title", M_ST_OFF(menu_list_priv_t,title),  CONF_TYPE_STRING, 0, 0, 0, NULL },
   { "na", M_ST_OFF(struct menu_priv_s,na), CONF_TYPE_STRING, 0, 0, 0, NULL },
--- a/libmenu/menu_pt.c	Sun Apr 04 16:08:15 2010 +0000
+++ b/libmenu/menu_pt.c	Sun Apr 04 16:11:20 2010 +0000
@@ -60,7 +60,7 @@
 
 #define ST_OFF(m) M_ST_OFF(struct menu_priv_s,m)
 
-static m_option_t cfg_fields[] = {
+static const m_option_t cfg_fields[] = {
   MENU_LIST_PRIV_FIELDS,
   { "title", ST_OFF(title),  CONF_TYPE_STRING, 0, 0, 0, NULL },
   { "auto-close", ST_OFF(auto_close), CONF_TYPE_FLAG, 0, 0, 1, NULL },
--- a/libmenu/menu_txt.c	Sun Apr 04 16:08:15 2010 +0000
+++ b/libmenu/menu_txt.c	Sun Apr 04 16:11:20 2010 +0000
@@ -56,7 +56,7 @@
 
 #define ST_OFF(m) M_ST_OFF(struct menu_priv_s,m)
 
-static m_option_t cfg_fields[] = {
+static const m_option_t cfg_fields[] = {
   { "minbor", ST_OFF(minb), CONF_TYPE_INT, M_OPT_MIN, 0, 0, NULL },
   { "hspace", ST_OFF(hspace), CONF_TYPE_INT, M_OPT_MIN, 0, 0, NULL },
   { "file", ST_OFF(file), CONF_TYPE_STRING, 0, 0, 0, NULL },