# HG changeset patch # User ben # Date 1180088799 0 # Node ID b344b6520518d36ce005cd19a8019810234b19c0 # Parent 84eaacdc380d58267541ad6d39b7373a0e73295e rename some menu open functions, to avoid confusion with libc native open() diff -r 84eaacdc380d -r b344b6520518 libmenu/menu_cmdlist.c --- a/libmenu/menu_cmdlist.c Fri May 25 02:52:35 2007 +0000 +++ b/libmenu/menu_cmdlist.c Fri May 25 10:26:39 2007 +0000 @@ -149,7 +149,7 @@ } } -static int open(menu_t* menu, char* args) { +static int open_cmdlist(menu_t* menu, char* args) { menu->draw = menu_list_draw; menu->read_cmd = read_cmd; menu->read_key = read_key; @@ -177,5 +177,5 @@ &cfg_dflt, cfg_fields }, - open + open_cmdlist }; diff -r 84eaacdc380d -r b344b6520518 libmenu/menu_txt.c --- a/libmenu/menu_txt.c Fri May 25 02:52:35 2007 +0000 +++ b/libmenu/menu_txt.c Fri May 25 10:26:39 2007 +0000 @@ -118,7 +118,7 @@ #define BUF_SIZE 1024 -static int open(menu_t* menu, char* args) { +static int open_txt(menu_t* menu, char* args) { FILE* fd; char buf[BUF_SIZE]; char *l; @@ -192,5 +192,5 @@ &cfg_dflt, cfg_fields }, - open, + open_txt, }; diff -r 84eaacdc380d -r b344b6520518 libmenu/vf_menu.c --- a/libmenu/vf_menu.c Fri May 25 02:52:35 2007 +0000 +++ b/libmenu/vf_menu.c Fri May 25 10:26:39 2007 +0000 @@ -280,7 +280,7 @@ return (vf_next_query_format(vf,fmt)); } -static int open(vf_instance_t *vf, char* args){ +static int open_vf(vf_instance_t *vf, char* args){ if(!st_priv) { st_priv = calloc(1,sizeof(struct vf_priv_s)); st_priv->root = st_priv->current = menu_open(args); @@ -310,7 +310,7 @@ "menu", "Albeu", "", - open, + open_vf, NULL };