From dccf998915da947121cc2236c90921529ecb2aa9 Mon Sep 17 00:00:00 2001 From: "David M. Syzdek" Date: Mon, 21 Mar 2022 22:41:30 -0800 Subject: tinyrad: replacing tinyrad_dict_add_path() with tinyrad_dict_set_option() --- src/tinyrad.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/tinyrad.c b/src/tinyrad.c index 906d4ad..b37c6c7 100644 --- a/src/tinyrad.c +++ b/src/tinyrad.c @@ -305,11 +305,11 @@ my_dict_load( }; // set paths - for(pos = 0; ( ((dict_paths)) && ((dict_paths[pos])) ); pos++) + if ((dict_paths)) { - if ((rc = tinyrad_dict_add_path(dict, dict_paths[pos])) != TRAD_SUCCESS) + if ((rc = tinyrad_dict_set_option(dict, TRAD_DICT_OPT_PATHS, dict_paths)) != TRAD_SUCCESS) { - trutils_error(opts, NULL, "%s: %s", dict_paths[pos], tinyrad_strerror(rc)); + trutils_error(opts, NULL, "tinyrad_dict_set_option(TRAD_DICT_OPT_PATHS): %s", tinyrad_strerror(rc)); tinyrad_free(dict); return(rc); }; -- cgit v1.2.3