summaryrefslogtreecommitdiff
path: root/src/testing/testing_api_helpers_bank.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2023-01-15 22:58:07 +0100
committerChristian Grothoff <christian@grothoff.org>2023-01-15 22:58:07 +0100
commitcbb021b6bf996c79530ae3dda98ec85f716e9d07 (patch)
treefe70a971715c7d5e594f2628a0f8eda78dcb28d2 /src/testing/testing_api_helpers_bank.c
parent50a33389dabe9660b08fc3fac616a580c9594e20 (diff)
downloadexchange-cbb021b6bf996c79530ae3dda98ec85f716e9d07.tar.gz
exchange-cbb021b6bf996c79530ae3dda98ec85f716e9d07.tar.bz2
exchange-cbb021b6bf996c79530ae3dda98ec85f716e9d07.zip
-fix compiler warning: add missing prototype
Diffstat (limited to 'src/testing/testing_api_helpers_bank.c')
-rw-r--r--src/testing/testing_api_helpers_bank.c31
1 files changed, 17 insertions, 14 deletions
diff --git a/src/testing/testing_api_helpers_bank.c b/src/testing/testing_api_helpers_bank.c
index b67c92ab3..2507a87e9 100644
--- a/src/testing/testing_api_helpers_bank.c
+++ b/src/testing/testing_api_helpers_bank.c
@@ -1,6 +1,6 @@
/*
This file is part of TALER
- Copyright (C) 2018-2021 Taler Systems SA
+ Copyright (C) 2018-2023 Taler Systems SA
TALER is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as
@@ -299,7 +299,7 @@ TALER_TESTING_run_bank (const char *config_filename,
enum GNUNET_GenericReturnValue
TALER_TESTING_prepare_libeufin (const char *config_filename,
- int reset_db,
+ bool reset_db,
const char *config_section,
struct TALER_TESTING_BankConfiguration *bc)
{
@@ -354,9 +354,9 @@ TALER_TESTING_prepare_libeufin (const char *config_filename,
GNUNET_NETWORK_test_port_free (IPPROTO_TCP,
(uint16_t) port))
{
- fprintf (stderr,
- "Required port %llu not available, skipping.\n",
- port);
+ GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+ "Required port %llu not available, skipping.\n",
+ port);
GNUNET_break (0);
GNUNET_free (database);
GNUNET_CONFIGURATION_destroy (cfg);
@@ -364,7 +364,7 @@ TALER_TESTING_prepare_libeufin (const char *config_filename,
}
/* DB preparation */
- if (GNUNET_YES == reset_db)
+ if (reset_db)
{
if (0 != system ("rm -f /tmp/libeufin-exchange-test-nexusdb.sqlite3"))
{
@@ -414,11 +414,14 @@ TALER_TESTING_prepare_libeufin (const char *config_filename,
"Relying on nexus %s on port %u\n",
bc->exchange_auth.wire_gateway_url,
(unsigned int) port);
- GNUNET_log (GNUNET_ERROR_TYPE_INFO, "exchange payto: %s\n",
+ GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+ "exchange payto: %s\n",
bc->exchange_payto);
- GNUNET_log (GNUNET_ERROR_TYPE_INFO, "user42_payto: %s\n",
+ GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+ "user42_payto: %s\n",
bc->user42_payto);
- GNUNET_log (GNUNET_ERROR_TYPE_INFO, "user42_payto: %s\n",
+ GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+ "user42_payto: %s\n",
bc->user43_payto);
return GNUNET_OK;
}
@@ -426,7 +429,7 @@ TALER_TESTING_prepare_libeufin (const char *config_filename,
enum GNUNET_GenericReturnValue
TALER_TESTING_prepare_bank (const char *config_filename,
- int reset_db,
+ bool reset_db,
const char *config_section,
struct TALER_TESTING_BankConfiguration *bc)
{
@@ -498,9 +501,9 @@ TALER_TESTING_prepare_bank (const char *config_filename,
GNUNET_NETWORK_test_port_free (IPPROTO_TCP,
(uint16_t) port))
{
- fprintf (stderr,
- "Required port %llu not available, skipping.\n",
- port);
+ GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+ "Required port %llu not available, skipping.\n",
+ port);
GNUNET_break (0);
GNUNET_free (database);
GNUNET_CONFIGURATION_destroy (cfg);
@@ -508,7 +511,7 @@ TALER_TESTING_prepare_bank (const char *config_filename,
}
/* DB preparation */
- if (GNUNET_YES == reset_db)
+ if (reset_db)
{
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
"Flushing bank database\n");