[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-exchange] branch master updated: -fix compiler warning: add missi
From: |
gnunet |
Subject: |
[taler-exchange] branch master updated: -fix compiler warning: add missing prototype |
Date: |
Sun, 15 Jan 2023 22:58:12 +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 cbb021b6 -fix compiler warning: add missing prototype
cbb021b6 is described below
commit cbb021b6bf996c79530ae3dda98ec85f716e9d07
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sun Jan 15 22:58:07 2023 +0100
-fix compiler warning: add missing prototype
---
contrib/gana | 2 +-
src/include/taler_testing_lib.h | 20 +++++++++++++++++++-
src/testing/testing_api_helpers_bank.c | 31 +++++++++++++++++--------------
3 files changed, 37 insertions(+), 16 deletions(-)
diff --git a/contrib/gana b/contrib/gana
index 4dd73271..832685b6 160000
--- a/contrib/gana
+++ b/contrib/gana
@@ -1 +1 @@
-Subproject commit 4dd732710277a1761972e08707578b01ecf2d678
+Subproject commit 832685b6a942a6ebbec8e1e5b8c33b6b85b0a727
diff --git a/src/include/taler_testing_lib.h b/src/include/taler_testing_lib.h
index 55d36b2d..0418ab17 100644
--- a/src/include/taler_testing_lib.h
+++ b/src/include/taler_testing_lib.h
@@ -868,6 +868,24 @@ struct GNUNET_OS_Process *
TALER_TESTING_run_bank (const char *config_filename,
const char *bank_url);
+
+/**
+ * Prepare libeufin sandbox execution. Check if the port is available and
+ * reset database.
+ *
+ * @param config_filename configuration file name.
+ * @param reset_db should we reset the bank's database
+ * @param config_section which configuration section should be used
+ * @param[out] bc set to the bank's configuration data
+ * @return #GNUNET_OK on success
+ */
+enum GNUNET_GenericReturnValue
+TALER_TESTING_prepare_libeufin (const char *config_filename,
+ bool reset_db,
+ const char *config_section,
+ struct TALER_TESTING_BankConfiguration *bc);
+
+
/**
* Start the (nexus) bank process. Assume the port
* is available and the database is clean. Use the "prepare
@@ -909,7 +927,7 @@ TALER_TESTING_run_fakebank (const char *bank_url,
*/
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);
diff --git a/src/testing/testing_api_helpers_bank.c
b/src/testing/testing_api_helpers_bank.c
index b67c92ab..2507a87e 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");
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-exchange] branch master updated: -fix compiler warning: add missing prototype,
gnunet <=