diff options
Diffstat (limited to 'tests/dict-data.c')
| -rw-r--r-- | tests/dict-data.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/dict-data.c b/tests/dict-data.c index f42bdca..e3124c1 100644 --- a/tests/dict-data.c +++ b/tests/dict-data.c | |||
| @@ -319,7 +319,7 @@ our_dict_initialize( | |||
| 319 | // initialize dictionary | 319 | // initialize dictionary |
| 320 | if (tinyrad_dict_initialize(dictp, 0) != TRAD_SUCCESS) | 320 | if (tinyrad_dict_initialize(dictp, 0) != TRAD_SUCCESS) |
| 321 | { | 321 | { |
| 322 | our_error(opts, NULL, "out of virtual memory"); | 322 | trutils_error(opts, NULL, "out of virtual memory"); |
| 323 | return(1); | 323 | return(1); |
| 324 | }; | 324 | }; |
| 325 | 325 | ||
| @@ -329,7 +329,7 @@ our_dict_initialize( | |||
| 329 | trutils_verbose(opts, "loading default dictionary ..."); | 329 | trutils_verbose(opts, "loading default dictionary ..."); |
| 330 | if ((rc = tinyrad_dict_defaults(*dictp, &errs, 0)) != TRAD_SUCCESS) | 330 | if ((rc = tinyrad_dict_defaults(*dictp, &errs, 0)) != TRAD_SUCCESS) |
| 331 | { | 331 | { |
| 332 | our_error(opts, errs, "tinyrad_dict_defaults(): %s", tinyrad_strerror(rc)); | 332 | trutils_error(opts, errs, "tinyrad_dict_defaults(): %s", tinyrad_strerror(rc)); |
| 333 | tinyrad_strsfree(errs); | 333 | tinyrad_strsfree(errs); |
| 334 | tinyrad_free(*dictp); | 334 | tinyrad_free(*dictp); |
| 335 | return(1); | 335 | return(1); |
| @@ -340,7 +340,7 @@ our_dict_initialize( | |||
| 340 | trutils_verbose(opts, "adding test dictionary vendors ..."); | 340 | trutils_verbose(opts, "adding test dictionary vendors ..."); |
| 341 | if ((rc = tinyrad_dict_import(*dictp, test_dict_data_vendors, NULL, NULL, &errs, 0)) != TRAD_SUCCESS) | 341 | if ((rc = tinyrad_dict_import(*dictp, test_dict_data_vendors, NULL, NULL, &errs, 0)) != TRAD_SUCCESS) |
| 342 | { | 342 | { |
| 343 | our_error(opts, errs, "tinyrad_dict_import(vendors): %s", tinyrad_strerror(rc)); | 343 | trutils_error(opts, errs, "tinyrad_dict_import(vendors): %s", tinyrad_strerror(rc)); |
| 344 | tinyrad_strsfree(errs); | 344 | tinyrad_strsfree(errs); |
| 345 | tinyrad_free(*dictp); | 345 | tinyrad_free(*dictp); |
| 346 | return(1); | 346 | return(1); |
| @@ -350,7 +350,7 @@ our_dict_initialize( | |||
| 350 | trutils_verbose(opts, "adding test dictionary attributes ..."); | 350 | trutils_verbose(opts, "adding test dictionary attributes ..."); |
| 351 | if ((rc = tinyrad_dict_import(*dictp, NULL, test_dict_data_attrs, NULL, &errs, 0)) != TRAD_SUCCESS) | 351 | if ((rc = tinyrad_dict_import(*dictp, NULL, test_dict_data_attrs, NULL, &errs, 0)) != TRAD_SUCCESS) |
| 352 | { | 352 | { |
| 353 | our_error(opts, errs, "tinyrad_dict_import(attributes): %s", tinyrad_strerror(rc)); | 353 | trutils_error(opts, errs, "tinyrad_dict_import(attributes): %s", tinyrad_strerror(rc)); |
| 354 | tinyrad_strsfree(errs); | 354 | tinyrad_strsfree(errs); |
| 355 | tinyrad_free(*dictp); | 355 | tinyrad_free(*dictp); |
| 356 | return(1); | 356 | return(1); |
| @@ -360,7 +360,7 @@ our_dict_initialize( | |||
| 360 | trutils_verbose(opts, "adding test dictionary values ..."); | 360 | trutils_verbose(opts, "adding test dictionary values ..."); |
| 361 | if ((rc = tinyrad_dict_import(*dictp, NULL, NULL, test_dict_data_values, &errs, 0)) != TRAD_SUCCESS) | 361 | if ((rc = tinyrad_dict_import(*dictp, NULL, NULL, test_dict_data_values, &errs, 0)) != TRAD_SUCCESS) |
| 362 | { | 362 | { |
| 363 | our_error(opts, errs, "tinyrad_dict_import(values): %s", tinyrad_strerror(rc)); | 363 | trutils_error(opts, errs, "tinyrad_dict_import(values): %s", tinyrad_strerror(rc)); |
| 364 | tinyrad_strsfree(errs); | 364 | tinyrad_strsfree(errs); |
| 365 | tinyrad_free(*dictp); | 365 | tinyrad_free(*dictp); |
| 366 | return(1); | 366 | return(1); |
