diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-11-19 10:57:27 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-11-19 10:57:27 +0100 |
commit | bdaaa0f6cb8f99168ed9916064a5e4145426480c (patch) | |
tree | bd8e37886cbc6356a00d5a0592d99f30f0b2f3c9 /src/testing/testing_api_cmd_change_auth.c | |
parent | dff5510dd36059a567d1110da870cc79bd508f70 (diff) | |
download | exchange-bdaaa0f6cb8f99168ed9916064a5e4145426480c.tar.xz |
-fix misc. compiler warnings
Diffstat (limited to 'src/testing/testing_api_cmd_change_auth.c')
-rw-r--r-- | src/testing/testing_api_cmd_change_auth.c | 28 |
1 files changed, 2 insertions, 26 deletions
diff --git a/src/testing/testing_api_cmd_change_auth.c b/src/testing/testing_api_cmd_change_auth.c index fdf5d3591..2f0f95b79 100644 --- a/src/testing/testing_api_cmd_change_auth.c +++ b/src/testing/testing_api_cmd_change_auth.c @@ -41,30 +41,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. * * @param cls closure. @@ -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; |