diff options
Diffstat (limited to 'usr.sbin/pkg/config.c')
-rw-r--r-- | usr.sbin/pkg/config.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/pkg/config.c b/usr.sbin/pkg/config.c index e46da4a..fded95e 100644 --- a/usr.sbin/pkg/config.c +++ b/usr.sbin/pkg/config.c @@ -517,10 +517,10 @@ boolstr_to_bool(const char *str) } static void -config_parse(ucl_object_t *obj, pkg_conf_file_t conftype) +config_parse(const ucl_object_t *obj, pkg_conf_file_t conftype) { struct sbuf *buf = sbuf_new_auto(); - ucl_object_t *cur, *seq; + const ucl_object_t *cur, *seq; ucl_object_iter_t it = NULL, itseq = NULL; struct config_entry *temp_config; struct config_value *cv; @@ -638,7 +638,7 @@ static void parse_repo_file(ucl_object_t *obj) { ucl_object_iter_t it = NULL; - ucl_object_t *cur; + const ucl_object_t *cur; const char *key; while ((cur = ucl_iterate_object(obj, &it, true))) { @@ -683,7 +683,7 @@ read_conf_file(const char *confpath, pkg_conf_file_t conftype) parse_repo_file(obj); } - ucl_object_free(obj); + ucl_object_unref(obj); ucl_parser_free(p); return (0); |