changeset 35303:aad2bda4f65f

Fix const correctness.
author reimar
date Sat, 10 Nov 2012 13:29:26 +0000
parents 990a80ea52d3
children d29d116c0818
files libmenu/menu.c libmenu/menu.h
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libmenu/menu.c	Sat Nov 10 13:25:25 2012 +0000
+++ b/libmenu/menu.c	Sat Nov 10 13:29:26 2012 +0000
@@ -78,7 +78,7 @@
 
 struct menu_def_st {
   char* name;
-  menu_info_t* type;
+  const menu_info_t* type;
   void* cfg;
   char* args;
 };
--- a/libmenu/menu.h	Sat Nov 10 13:25:25 2012 +0000
+++ b/libmenu/menu.h	Sat Nov 10 13:29:26 2012 +0000
@@ -47,7 +47,7 @@
   void (*read_cmd)(menu_t* menu,int cmd);
   int (*read_key)(menu_t* menu,int cmd);
   void (*close)(menu_t* menu);
-  struct m_struct_st* priv_st;
+  const struct m_struct_st* priv_st;
   struct menu_priv_s* priv;
   int show; // Draw it ?
   int cl; // Close request (user sent a close cmd or