summaryrefslogtreecommitdiff
path: root/src/testing/testing_api_cmd_status.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-10-27 22:28:52 +0200
committerChristian Grothoff <christian@grothoff.org>2021-10-27 22:28:52 +0200
commit0996b83a651507f713043fb0477f10e7b0a15fc4 (patch)
tree9eb2a64e9305b191f105b2e41970d2a7c0378667 /src/testing/testing_api_cmd_status.c
parent382fb837bd43ec7de93c8e17404732b4c95ccaca (diff)
downloadexchange-0996b83a651507f713043fb0477f10e7b0a15fc4.tar.gz
exchange-0996b83a651507f713043fb0477f10e7b0a15fc4.tar.bz2
exchange-0996b83a651507f713043fb0477f10e7b0a15fc4.zip
libtalertesting compiles
Diffstat (limited to 'src/testing/testing_api_cmd_status.c')
-rw-r--r--src/testing/testing_api_cmd_status.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/testing/testing_api_cmd_status.c b/src/testing/testing_api_cmd_status.c
index 1dba675b3..8fdfa461c 100644
--- a/src/testing/testing_api_cmd_status.c
+++ b/src/testing/testing_api_cmd_status.c
@@ -156,7 +156,7 @@ analyze_command (const struct TALER_ReservePublicKeyP *reserve_pub,
if (TALER_TESTING_cmd_is_batch (cmd))
{
struct TALER_TESTING_Command *cur;
- struct TALER_TESTING_Command *bcmd;
+ struct TALER_TESTING_Command **bcmd;
cur = TALER_TESTING_cmd_batch_get_current (cmd);
if (GNUNET_OK !=
@@ -166,9 +166,9 @@ analyze_command (const struct TALER_ReservePublicKeyP *reserve_pub,
GNUNET_break (0);
return GNUNET_SYSERR;
}
- for (unsigned int i = 0; NULL != bcmd[i].label; i++)
+ for (unsigned int i = 0; NULL != (*bcmd)[i].label; i++)
{
- struct TALER_TESTING_Command *step = &bcmd[i];
+ struct TALER_TESTING_Command *step = &(*bcmd)[i];
if (step == cur)
break; /* if *we* are in a batch, make sure not to analyze commands past 'now' */
@@ -189,7 +189,6 @@ analyze_command (const struct TALER_ReservePublicKeyP *reserve_pub,
if (GNUNET_OK !=
TALER_TESTING_get_trait_reserve_pub (cmd,
- 0,
&rp))
return GNUNET_OK; /* command does nothing for reserves */
if (0 !=
@@ -198,7 +197,6 @@ analyze_command (const struct TALER_ReservePublicKeyP *reserve_pub,
return GNUNET_OK; /* command affects some _other_ reserve */
if (GNUNET_OK !=
TALER_TESTING_get_trait_reserve_history (cmd,
- 0,
&he))
{
/* NOTE: only for debugging... */
@@ -344,7 +342,6 @@ status_run (void *cls,
}
if (GNUNET_OK !=
TALER_TESTING_get_trait_reserve_pub (create_reserve,
- 0,
&ss->reserve_pubp))
{
GNUNET_break (0);