commit 8a921b19c7289b1cc29b09cfc4fa484bcc0d6a2d
parent b442690cb04dc5cf47941a6783e8a0411504cf66
Author: Christian Grothoff <grothoff@gnunet.org>
Date: Sat, 11 Jul 2026 21:36:38 +0200
-DCE
Diffstat:
2 files changed, 14 insertions(+), 22 deletions(-)
diff --git a/src/include/taler/taler_merchant_testing_lib.h b/src/include/taler/taler_merchant_testing_lib.h
@@ -2315,17 +2315,14 @@ TALER_TESTING_cmd_charity_post_merchant (
* @param url base URL of the Donau we are looking for instances of.
* @param instance_count number of instances we expect to be returned.
* @param expected_http_status expected HTTP response code.
- * @param ... NULL-terminated list of labels (const char *) of
- * donau instances (commands) we expect to be returned in the list
* @return the command.
*/
struct TALER_TESTING_Command
-TALER_TESTING_cmd_merchant_get_donau_instances (const char *label,
- const char *url,
- unsigned int instance_count,
- unsigned int
- expected_http_status,
- ...);
+TALER_TESTING_cmd_merchant_get_donau_instances (
+ const char *label,
+ const char *url,
+ unsigned int instance_count,
+ unsigned int expected_http_status);
/**
diff --git a/src/testing/testing_api_cmd_get_donau_instances.c b/src/testing/testing_api_cmd_get_donau_instances.c
@@ -57,7 +57,7 @@ struct GetDonauInstancesState
unsigned int expected_http_status;
/**
- * The number of instances in the `instances` array.
+ * The number of instances to expect.
*/
unsigned int instances_length;
};
@@ -69,11 +69,10 @@ struct GetDonauInstancesState
* @param response response details from the Donau service
*/
static void
-get_donau_instances_cb (struct GetDonauInstancesState *gis,
- const struct
- TALER_MERCHANT_GetPrivateDonauResponse *response)
+get_donau_instances_cb (
+ struct GetDonauInstancesState *gis,
+ const struct TALER_MERCHANT_GetPrivateDonauResponse *response)
{
-
gis->dgh = NULL;
if (gis->expected_http_status != response->hr.http_status)
@@ -161,23 +160,19 @@ get_donau_instances_cleanup (void *cls,
* Creation of the "GET donau instances" CMD.
*/
struct TALER_TESTING_Command
-TALER_TESTING_cmd_merchant_get_donau_instances (const char *label,
- const char *url,
- unsigned int instance_count,
- unsigned int
- expected_http_status,
- ...)
+TALER_TESTING_cmd_merchant_get_donau_instances (
+ const char *label,
+ const char *url,
+ unsigned int instance_count,
+ unsigned int expected_http_status)
{
struct GetDonauInstancesState *gis;
- va_list ap;
gis = GNUNET_new (struct GetDonauInstancesState);
gis->url = url;
gis->expected_http_status = expected_http_status;
gis->instances_length = instance_count;
- va_start (ap, expected_http_status);
- va_end (ap);
{
struct TALER_TESTING_Command cmd = {
.cls = gis,