From bdaaa0f6cb8f99168ed9916064a5e4145426480c Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 19 Nov 2021 10:57:27 +0100 Subject: -fix misc. compiler warnings --- src/testing/testing_api_cmd_change_auth.c | 28 ++-------------------------- 1 file changed, 2 insertions(+), 26 deletions(-) (limited to 'src/testing/testing_api_cmd_change_auth.c') diff --git a/src/testing/testing_api_cmd_change_auth.c b/src/testing/testing_api_cmd_change_auth.c index fdf5d359..2f0f95b7 100644 --- a/src/testing/testing_api_cmd_change_auth.c +++ b/src/testing/testing_api_cmd_change_auth.c @@ -40,30 +40,6 @@ struct AuthchangeState }; -/** - * No traits to offer, just provide a stub to be called when - * some CMDs iterates through the list of all the commands. - * - * @param cls closure. - * @param[out] ret result. - * @param trait name of the trait. - * @param index index number of the trait to return. - * @return #GNUNET_OK on success. - */ -static int -authchange_traits (void *cls, - const void **ret, - const char *trait, - unsigned int index) -{ - (void) cls; - (void) ret; - (void) trait; - (void) index; - return GNUNET_NO; -} - - /** * Run the command. * @@ -78,6 +54,7 @@ authchange_run (void *cls, { struct AuthchangeState *ss = cls; + (void) cmd; if (NULL != is->ctx) { GNUNET_CURL_fini (is->ctx); @@ -142,8 +119,7 @@ TALER_TESTING_cmd_set_authorization (const char *label, .cls = ss, .label = label, .run = &authchange_run, - .cleanup = &authchange_cleanup, - .traits = &authchange_traits + .cleanup = &authchange_cleanup }; return cmd; -- cgit v1.2.3