# HG changeset patch # User reimar # Date 1352554166 0 # Node ID aad2bda4f65f80dff9b902525a5199e783adeb24 # Parent 990a80ea52d356dc17859d2c763d8514ce508442 Fix const correctness. diff -r 990a80ea52d3 -r aad2bda4f65f libmenu/menu.c --- 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; }; diff -r 990a80ea52d3 -r aad2bda4f65f libmenu/menu.h --- 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