[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-exchange] branch master updated: fix ftbfs
From: |
gnunet |
Subject: |
[taler-exchange] branch master updated: fix ftbfs |
Date: |
Sun, 12 Jan 2020 18:14:18 +0100 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository exchange.
The following commit(s) were added to refs/heads/master by this push:
new 6a4cc079 fix ftbfs
6a4cc079 is described below
commit 6a4cc07978f8973d790d10f25b325569a555995c
Author: Christian Grothoff <address@hidden>
AuthorDate: Sun Jan 12 18:14:16 2020 +0100
fix ftbfs
---
src/bank-lib/fakebank.c | 3 +-
src/lib/exchange_api_wire.c | 1 -
src/lib/testing_api_cmd_bank_check.c | 69 ++++++++++++++----------------------
3 files changed, 28 insertions(+), 45 deletions(-)
diff --git a/src/bank-lib/fakebank.c b/src/bank-lib/fakebank.c
index ebf1ac48..79c02279 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 8bfa4ed1..787797ab 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 f74f7afe..ad0a14b6 100644
--- a/src/lib/testing_api_cmd_bank_check.c
+++ b/src/lib/testing_api_cmd_bank_check.c
@@ -59,11 +59,6 @@ struct BankCheckState
*/
const char *credit_account;
- /**
- * Wire transfer subject (set by fakebank-lib).
- */
- char *subject;
-
/**
* Binary form of the wire transfer subject.
*/
@@ -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;
+ }
}
--
To stop receiving notification emails like this one, please contact
address@hidden.