From: Arran Cudbard-Bell Date: Mon, 7 Oct 2019 00:12:13 +0000 (-0400) Subject: Dict dump should take const dict X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4538f99e016d5403a97af7a8d666b9db674283bb;p=thirdparty%2Ffreeradius-server.git Dict dump should take const dict --- diff --git a/src/lib/util/dict.h b/src/lib/util/dict.h index 930a845cd63..8871c86f74c 100644 --- a/src/lib/util/dict.h +++ b/src/lib/util/dict.h @@ -391,7 +391,7 @@ void fr_dict_free(fr_dict_t **dict); * * @{ */ -void fr_dict_dump(fr_dict_t *dict); +void fr_dict_dump(fr_dict_t const *dict); int fr_dict_parse_str(fr_dict_t *dict, char *buf, fr_dict_attr_t const *parent); diff --git a/src/lib/util/dict_util.c b/src/lib/util/dict_util.c index e9b36927379..625e95e6db4 100644 --- a/src/lib/util/dict_util.c +++ b/src/lib/util/dict_util.c @@ -2368,7 +2368,7 @@ static void _fr_dict_dump(fr_dict_attr_t const *da, unsigned int lvl) } } -void fr_dict_dump(fr_dict_t *dict) +void fr_dict_dump(fr_dict_t const *dict) { _fr_dict_dump(dict->root, 0); }