From 00ab1e3f8baade31f64ff07c8aec00430bfc285a Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Mon, 23 Jan 2012 17:47:36 +0000 Subject: [PATCH] add const --- libdm/libdm-config.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libdm/libdm-config.c b/libdm/libdm-config.c index a50d9a411..97559171b 100644 --- a/libdm/libdm-config.c +++ b/libdm/libdm-config.c @@ -852,6 +852,8 @@ static int _find_config_bool(const void *start, node_lookup_fn find, case DM_CFG_STRING: return _str_to_bool(v->v.str, fail); + default: + ; } return fail; @@ -861,7 +863,7 @@ static int _find_config_bool(const void *start, node_lookup_fn find, * node-based lookup **/ -struct dm_config_node *dm_config_find_node(struct dm_config_node *cn, +struct dm_config_node *dm_config_find_node(const struct dm_config_node *cn, const char *path) { return (struct dm_config_node *) _find_config_node(cn, path);