summaryrefslogtreecommitdiffstats
path: root/libmenu/menu_param.c
diff options
context:
space:
mode:
Diffstat (limited to 'libmenu/menu_param.c')
-rw-r--r--libmenu/menu_param.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libmenu/menu_param.c b/libmenu/menu_param.c
index 7e3a4f1a1c..5052a26954 100644
--- a/libmenu/menu_param.c
+++ b/libmenu/menu_param.c
@@ -60,7 +60,7 @@ struct menu_priv_s {
char* na;
int hide_na;
};
-
+
static struct menu_priv_s cfg_dflt = {
MENU_LIST_PRIV_DFLT,
NULL,
@@ -112,7 +112,7 @@ static int parse_args(menu_t* menu,char* args) {
int r;
m_option_t* opt;
ASX_Parser_t* parser = asx_parser_new(menu->mconfig);
-
+
while(1) {
r = asx_get_element(parser,&args,&element,&body,&attribs);
@@ -120,7 +120,7 @@ static int parse_args(menu_t* menu,char* args) {
mp_tmsg(MSGT_OSD_MENU,MSGL_ERR,"[MENU] syntax error at line: %d\n",parser->line);
asx_parser_free(parser);
return -1;
- } else if(r == 0) {
+ } else if(r == 0) {
asx_parser_free(parser);
if(!m)
mp_tmsg(MSGT_OSD_MENU,MSGL_WARN,"[MENU] No entry found in the menu definition.\n");
@@ -200,7 +200,7 @@ static void read_cmd(menu_t* menu,int cmd) {
if(mp_property_do(e->prop,M_PROPERTY_STEP_DOWN,NULL,menu->ctx) > 0)
update_entries(menu, 0);
return;
-
+
case MENU_CMD_OK:
// check that the property is writable
if(mp_property_do(e->prop,M_PROPERTY_SET,NULL,menu->ctx) < 0) return;
@@ -281,7 +281,7 @@ static int openMenu(menu_t* menu, char* args) {
mp_tmsg(MSGT_OSD_MENU,MSGL_ERR,"[MENU] Pref menu needs an argument.\n");
return 0;
}
-
+
menu_list_init(menu);
return parse_args(menu,args);
}