aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
authorDavid M. Syzdek <david@syzdek.net>2022-03-08 17:40:17 -0900
committerDavid M. Syzdek <david@syzdek.net>2022-03-08 17:40:17 -0900
commit555fca927fe09b116099dd771bc9ed54c370bbad (patch)
tree25a9dec24ebbc7c0759d7931fcb643842b82c828 /src
parent3159887f084fee72ce12983d1704d3605b2987e5 (diff)
downloadtinyrad-555fca927fe09b116099dd771bc9ed54c370bbad.tar.gz
tinyrad-555fca927fe09b116099dd771bc9ed54c370bbad.tar.bz2
tinyrad-555fca927fe09b116099dd771bc9ed54c370bbad.tar.xz
tinyrad-555fca927fe09b116099dd771bc9ed54c370bbad.zip
tinyrad-dict: replacing our_error() with trutils_error()
Diffstat (limited to 'src')
-rw-r--r--src/tinyrad-dict.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tinyrad-dict.c b/src/tinyrad-dict.c
index 1bd5b9d..dfc0ed0 100644
--- a/src/tinyrad-dict.c
+++ b/src/tinyrad-dict.c
@@ -200,7 +200,7 @@ int main(int argc, char * argv[])
200 { 200 {
201 if ((rc = tinyrad_dict_defaults(dict, &errs, 0)) != TRAD_SUCCESS) 201 if ((rc = tinyrad_dict_defaults(dict, &errs, 0)) != TRAD_SUCCESS)
202 { 202 {
203 our_error(PROGRAM_NAME, errs, NULL); 203 trutils_error(opts, errs, NULL);
204 our_strings_free(files); 204 our_strings_free(files);
205 our_strings_free(paths); 205 our_strings_free(paths);
206 tinyrad_free(dict); 206 tinyrad_free(dict);
@@ -216,7 +216,7 @@ int main(int argc, char * argv[])
216 our_strings_free(paths); 216 our_strings_free(paths);
217 our_strings_free(files); 217 our_strings_free(files);
218 tinyrad_free(dict); 218 tinyrad_free(dict);
219 our_error(PROGRAM_NAME, NULL, "%s: %s", optarg, tinyrad_strerror(rc)); 219 trutils_error(opts, NULL, "%s: %s", optarg, tinyrad_strerror(rc));
220 return(our_exit_code(rc)); 220 return(our_exit_code(rc));
221 }; 221 };
222 }; 222 };
@@ -226,7 +226,7 @@ int main(int argc, char * argv[])
226 { 226 {
227 if ((rc = tinyrad_dict_parse(dict, files[pos], &errs, 0)) != TRAD_SUCCESS) 227 if ((rc = tinyrad_dict_parse(dict, files[pos], &errs, 0)) != TRAD_SUCCESS)
228 { 228 {
229 our_error(PROGRAM_NAME, errs, NULL); 229 trutils_error(opts, errs, NULL);
230 tinyrad_strsfree(errs); 230 tinyrad_strsfree(errs);
231 our_strings_free(paths); 231 our_strings_free(paths);
232 our_strings_free(files); 232 our_strings_free(files);