Index: src/hid_cfg.c =================================================================== --- src/hid_cfg.c (revision 1504) +++ src/hid_cfg.c (revision 1505) @@ -282,7 +282,7 @@ return n; } -lht_node_t *hid_cfg_get_submenu(lht_node_t *parent, const char *path) +lht_node_t *hid_cfg_get_submenu(const lht_node_t *parent, const char *path) { return lht_tree_path_(parent->doc, parent, path, 1, 0, NULL); } Index: src/hid_cfg.h =================================================================== --- src/hid_cfg.h (revision 1504) +++ src/hid_cfg.h (revision 1505) @@ -45,7 +45,7 @@ const char *hid_cfg_text_value(lht_doc_t *doc, const char *path); lht_node_t *hid_cfg_get_menu(hid_cfg_t *hr, const char *menu_path); -lht_node_t *hid_cfg_get_submenu(lht_node_t *parent, const char *path); +lht_node_t *hid_cfg_get_submenu(const lht_node_t *parent, const char *path); /* Fields are retrieved using this enum so that HIDs don't need to hardwire