From c11f8f20d9e76b1c9c183f0d6a4ece3d922ff365 Mon Sep 17 00:00:00 2001 From: James Brister Date: Tue, 8 Jun 1999 13:15:25 +0000 Subject: [PATCH] Support new arg to isc_symtab_create --- bin/tests/sym_test.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/bin/tests/sym_test.c b/bin/tests/sym_test.c index ec32038353..f021d7712f 100644 --- a/bin/tests/sym_test.c +++ b/bin/tests/sym_test.c @@ -31,7 +31,11 @@ isc_mem_t *mctx; isc_symtab_t *st; static void -undefine_action(char *key, unsigned int type, isc_symvalue_t value) { +undefine_action(char *key, unsigned int type, isc_symvalue_t value, + void *arg) +{ + (void) arg; + INSIST(type == 1); isc_mem_free(mctx, key); isc_mem_free(mctx, value.as_pointer); @@ -66,7 +70,7 @@ main(int argc, char *argv[]) { } RUNTIME_CHECK(isc_mem_create(0, 0, &mctx) == ISC_R_SUCCESS); - RUNTIME_CHECK(isc_symtab_create(mctx, 691, undefine_action, + RUNTIME_CHECK(isc_symtab_create(mctx, 691, undefine_action, NULL, case_sensitive, &st) == ISC_R_SUCCESS); while (fgets(s, sizeof s, stdin) != NULL) { @@ -110,7 +114,8 @@ main(int argc, char *argv[]) { key, cp, isc_result_totext(result)); if (result != ISC_R_SUCCESS) - undefine_action(key, 1, value); + undefine_action(key, 1, + value, NULL); } } }