aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-01-12 18:14:16 +0100
committerChristian Grothoff <christian@grothoff.org>2020-01-12 18:14:16 +0100
commit6a4cc07978f8973d790d10f25b325569a555995c (patch)
tree8a66a0b0fc918ea3b7e8299fa532c8f5c03ea3dd /src
parentc7610bf617caba4b283f6bf6fa871e940da59d1c (diff)
fix ftbfs
Diffstat (limited to 'src')
-rw-r--r--src/bank-lib/fakebank.c3
-rw-r--r--src/lib/exchange_api_wire.c1
-rw-r--r--src/lib/testing_api_cmd_bank_check.c69
3 files changed, 28 insertions, 45 deletions
diff --git a/src/bank-lib/fakebank.c b/src/bank-lib/fakebank.c
index ebf1ac485..79c022794 100644
--- a/src/bank-lib/fakebank.c
+++ b/src/bank-lib/fakebank.c
@@ -129,7 +129,8 @@ struct Transaction
uint64_t row_id;
/**
- * Has this transaction been subjected to #TALER_FAKEBANK_check()
+ * Has this transaction been subjected to #TALER_FAKEBANK_check_credit()
+ * or #TALER_FAKEBANK_check_debit()
* and should thus no longer be counted in
* #TALER_FAKEBANK_check_empty()?
*/
diff --git a/src/lib/exchange_api_wire.c b/src/lib/exchange_api_wire.c
index 8bfa4ed12..787797abe 100644
--- a/src/lib/exchange_api_wire.c
+++ b/src/lib/exchange_api_wire.c
@@ -28,7 +28,6 @@
#include "taler_json_lib.h"
#include "taler_wire_lib.h"
#include "taler_signatures.h"
-#include "taler_wire_plugin.h"
#include "exchange_api_handle.h"
#include "exchange_api_curl_defaults.h"
diff --git a/src/lib/testing_api_cmd_bank_check.c b/src/lib/testing_api_cmd_bank_check.c
index f74f7afec..ad0a14b65 100644
--- a/src/lib/testing_api_cmd_bank_check.c
+++ b/src/lib/testing_api_cmd_bank_check.c
@@ -60,11 +60,6 @@ struct BankCheckState
const char *credit_account;
/**
- * Wire transfer subject (set by fakebank-lib).
- */
- char *subject;
-
- /**
* Binary form of the wire transfer subject.
*/
struct TALER_WireTransferIdentifierRawP wtid;
@@ -155,12 +150,12 @@ check_bank_transfer_run (void *cls,
}
if (GNUNET_OK !=
- TALER_FAKEBANK_check (is->fakebank,
- &amount,
- debit_account,
- credit_account,
- exchange_base_url,
- &bcs->subject))
+ TALER_FAKEBANK_check_debit (is->fakebank,
+ &amount,
+ debit_account,
+ credit_account,
+ exchange_base_url,
+ &bcs->wtid))
{
GNUNET_break (0);
TALER_TESTING_interpreter_fail (is);
@@ -183,7 +178,6 @@ check_bank_transfer_cleanup
{
struct BankCheckState *bcs = cls;
- GNUNET_free_non_null (bcs->subject);
GNUNET_free (bcs);
}
@@ -204,28 +198,17 @@ check_bank_transfer_traits (void *cls,
unsigned int index)
{
struct BankCheckState *bcs = cls;
- struct TALER_WireTransferIdentifierRawP *wtid_ptr;
-
- if (GNUNET_OK != GNUNET_STRINGS_string_to_data
- (bcs->subject,
- strlen (bcs->subject),
- &bcs->wtid,
- sizeof (struct TALER_WireTransferIdentifierRawP)))
- wtid_ptr = NULL;
- else
- wtid_ptr = &bcs->wtid;
- {
- struct TALER_TESTING_Trait traits[] = {
- TALER_TESTING_make_trait_wtid (0, wtid_ptr),
- TALER_TESTING_make_trait_url (0, bcs->exchange_base_url),
- TALER_TESTING_trait_end ()
- };
+ struct TALER_WireTransferIdentifierRawP *wtid_ptr = &bcs->wtid;
+ struct TALER_TESTING_Trait traits[] = {
+ TALER_TESTING_make_trait_wtid (0, wtid_ptr),
+ TALER_TESTING_make_trait_url (0, bcs->exchange_base_url),
+ TALER_TESTING_trait_end ()
+ };
- return TALER_TESTING_get_trait (traits,
- ret,
- trait,
- index);
- }
+ return TALER_TESTING_get_trait (traits,
+ ret,
+ trait,
+ index);
}
@@ -335,7 +318,6 @@ check_bank_empty_traits (void *cls,
struct TALER_TESTING_Command
TALER_TESTING_cmd_check_bank_empty (const char *label)
{
-
struct TALER_TESTING_Command cmd = {
.label = label,
.run = &check_bank_empty_run,
@@ -368,14 +350,15 @@ TALER_TESTING_cmd_check_bank_transfer_with_ref
bcs = GNUNET_new (struct BankCheckState);
bcs->deposit_reference = deposit_reference;
+ {
+ struct TALER_TESTING_Command cmd = {
+ .label = label,
+ .cls = bcs,
+ .run = &check_bank_transfer_run,
+ .cleanup = &check_bank_transfer_cleanup,
+ .traits = &check_bank_transfer_traits
+ };
- struct TALER_TESTING_Command cmd = {
- .label = label,
- .cls = bcs,
- .run = &check_bank_transfer_run,
- .cleanup = &check_bank_transfer_cleanup,
- .traits = &check_bank_transfer_traits
- };
-
- return cmd;
+ return cmd;
+ }
}