summaryrefslogtreecommitdiff
path: root/src/bank-lib
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-01-18 04:39:52 +0100
committerFlorian Dold <florian.dold@gmail.com>2020-01-18 04:39:52 +0100
commit8e0180b2576054c847935bb161ada81d697765fa (patch)
tree59b64a6a73987710ff37a021e70b8419c274116e /src/bank-lib
parent5d192295616528e54c47741b835c3f748c07d3ac (diff)
downloadexchange-8e0180b2576054c847935bb161ada81d697765fa.tar.gz
exchange-8e0180b2576054c847935bb161ada81d697765fa.tar.bz2
exchange-8e0180b2576054c847935bb161ada81d697765fa.zip
remove more redundant args
Diffstat (limited to 'src/bank-lib')
-rw-r--r--src/bank-lib/bank_api_credit.c6
-rw-r--r--src/bank-lib/bank_api_debit.c4
2 files changed, 3 insertions, 7 deletions
diff --git a/src/bank-lib/bank_api_credit.c b/src/bank-lib/bank_api_credit.c
index 95e91d7d..8803ac9b 100644
--- a/src/bank-lib/bank_api_credit.c
+++ b/src/bank-lib/bank_api_credit.c
@@ -218,7 +218,6 @@ handle_history_finished (void *cls,
* Request the credit history of the exchange's bank account.
*
* @param ctx curl context for the event loop
- * @param bank_base_url URL of the base INCLUDING account number
* @param auth authentication data to use
* @param start_row from which row on do we want to get results,
* use UINT64_MAX for the latest; exclusive
@@ -235,7 +234,6 @@ handle_history_finished (void *cls,
*/
struct TALER_BANK_CreditHistoryHandle *
TALER_BANK_credit_history (struct GNUNET_CURL_Context *ctx,
- const char *bank_base_url,
const struct TALER_BANK_AuthenticationData *auth,
uint64_t start_row,
int64_t num_results,
@@ -267,7 +265,7 @@ TALER_BANK_credit_history (struct GNUNET_CURL_Context *ctx,
hh = GNUNET_new (struct TALER_BANK_CreditHistoryHandle);
hh->hcb = hres_cb;
hh->hcb_cls = hres_cb_cls;
- hh->request_url = TALER_url_join (bank_base_url,
+ hh->request_url = TALER_url_join (auth->wire_gateway_url,
url,
NULL);
GNUNET_free (url);
@@ -277,7 +275,7 @@ TALER_BANK_credit_history (struct GNUNET_CURL_Context *ctx,
GNUNET_break (0);
return NULL;
}
- hh->bank_base_url = GNUNET_strdup (bank_base_url);
+ hh->bank_base_url = GNUNET_strdup (auth->wire_gateway_url);
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
"Requesting history at `%s'\n",
hh->request_url);
diff --git a/src/bank-lib/bank_api_debit.c b/src/bank-lib/bank_api_debit.c
index 652dde8d..0e218eb4 100644
--- a/src/bank-lib/bank_api_debit.c
+++ b/src/bank-lib/bank_api_debit.c
@@ -215,7 +215,6 @@ handle_history_finished (void *cls,
* Request the debit history of the exchange's bank account.
*
* @param ctx curl context for the event loop
- * @param account_base_url URL of the base INCLUDING account number
* @param auth authentication data to use
* @param start_row from which row on do we want to get results,
* use UINT64_MAX for the latest; exclusive
@@ -232,7 +231,6 @@ handle_history_finished (void *cls,
*/
struct TALER_BANK_DebitHistoryHandle *
TALER_BANK_debit_history (struct GNUNET_CURL_Context *ctx,
- const char *account_base_url,
const struct TALER_BANK_AuthenticationData *auth,
uint64_t start_row,
int64_t num_results,
@@ -264,7 +262,7 @@ TALER_BANK_debit_history (struct GNUNET_CURL_Context *ctx,
hh = GNUNET_new (struct TALER_BANK_DebitHistoryHandle);
hh->hcb = hres_cb;
hh->hcb_cls = hres_cb_cls;
- hh->request_url = TALER_url_join (account_base_url,
+ hh->request_url = TALER_url_join (auth->wire_gateway_url,
url,
NULL);
GNUNET_free (url);