exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit a6deee497c1e4515c426d755f2b473905b958eca
parent 1f34f365077647d60a30f94955cf1d6b1e411c13
Author: Christian Grothoff <christian@grothoff.org>
Date:   Tue,  1 Oct 2024 12:48:26 +0200

fix clang build issue

Diffstat:
Msrc/exchange/taler-exchange-httpd_kyc-wallet.c | 1-
Msrc/exchange/taler-exchange-httpd_purses_merge.c | 1-
Msrc/exchange/taler-exchange-httpd_reserves_close.c | 1-
Msrc/exchange/taler-exchange-httpd_reserves_purse.c | 1-
Dsrc/exchange/taler-exchange-httpd_withdraw.h | 53-----------------------------------------------------
Msrc/lib/exchange_api_stefan.c | 4++--
6 files changed, 2 insertions(+), 59 deletions(-)

diff --git a/src/exchange/taler-exchange-httpd_kyc-wallet.c b/src/exchange/taler-exchange-httpd_kyc-wallet.c @@ -30,7 +30,6 @@ #include "taler-exchange-httpd_common_kyc.h" #include "taler-exchange-httpd_kyc-wallet.h" #include "taler-exchange-httpd_responses.h" -#include "taler-exchange-httpd_withdraw.h" /** diff --git a/src/exchange/taler-exchange-httpd_purses_merge.c b/src/exchange/taler-exchange-httpd_purses_merge.c @@ -33,7 +33,6 @@ #include "taler-exchange-httpd_common_kyc.h" #include "taler-exchange-httpd_purses_merge.h" #include "taler-exchange-httpd_responses.h" -#include "taler-exchange-httpd_withdraw.h" #include "taler_exchangedb_lib.h" #include "taler-exchange-httpd_keys.h" diff --git a/src/exchange/taler-exchange-httpd_reserves_close.c b/src/exchange/taler-exchange-httpd_reserves_close.c @@ -30,7 +30,6 @@ #include "taler-exchange-httpd_common_kyc.h" #include "taler-exchange-httpd_keys.h" #include "taler-exchange-httpd_reserves_close.h" -#include "taler-exchange-httpd_withdraw.h" #include "taler-exchange-httpd_responses.h" diff --git a/src/exchange/taler-exchange-httpd_reserves_purse.c b/src/exchange/taler-exchange-httpd_reserves_purse.c @@ -32,7 +32,6 @@ #include "taler-exchange-httpd_common_kyc.h" #include "taler-exchange-httpd_reserves_purse.h" #include "taler-exchange-httpd_responses.h" -#include "taler-exchange-httpd_withdraw.h" #include "taler_exchangedb_lib.h" #include "taler-exchange-httpd_keys.h" diff --git a/src/exchange/taler-exchange-httpd_withdraw.h b/src/exchange/taler-exchange-httpd_withdraw.h @@ -1,53 +0,0 @@ -/* - This file is part of TALER - Copyright (C) 2014-2022 Taler Systems SA - - TALER is free software; you can redistribute it and/or modify it under the - terms of the GNU Affero General Public License as published by the Free Software - Foundation; either version 3, or (at your option) any later version. - - TALER is distributed in the hope that it will be useful, but WITHOUT ANY - WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR - A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - - You should have received a copy of the GNU Affero General Public License along with - TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/> -*/ -/** - * @file taler-exchange-httpd_withdraw.h - * @brief common code for withdraw requests - * @author Christian Grothoff - */ -#ifndef TALER_EXCHANGE_HTTPD_WITHDRAW_H -#define TALER_EXCHANGE_HTTPD_WITHDRAW_H - -#include <microhttpd.h> -#include "taler-exchange-httpd.h" - - -/** - * Do legitimization check for withdrawing @a withdraw_total - * from @a reserve_pub at time @a now. - * - * @param[out] kyc set to kyc status - * @param[out] h_payto set to payto hash of origin account - * @param[in,out] connection used to return hard errors - * @param[out] mhd_ret set if errors were returned - * (only on hard error) - * @param reserve_pub reserve from which we withdraw - * @param withdraw_total how much are being withdrawn - * @param now current time - * @return transaction status, error will have been - * queued if transaction status is set to hard error - */ -enum GNUNET_DB_QueryStatus -TEH_withdraw_kyc_check ( - struct TALER_EXCHANGEDB_KycStatus *kyc, - struct TALER_PaytoHashP *h_payto, - struct MHD_Connection *connection, - MHD_RESULT *mhd_ret, - const struct TALER_ReservePublicKeyP *reserve_pub, - const struct TALER_Amount *withdraw_total, - struct GNUNET_TIME_Timestamp now); - -#endif diff --git a/src/lib/exchange_api_stefan.c b/src/lib/exchange_api_stefan.c @@ -125,7 +125,7 @@ TALER_EXCHANGE_keys_stefan_b2n ( min = get_unit (keys); if (NULL == min) return GNUNET_SYSERR; - if (1.0d <= keys->stefan_lin) + if (1.0 <= keys->stefan_lin) { /* This cannot work, linear STEFAN fee estimate always exceed any gross amount. */ @@ -273,7 +273,7 @@ TALER_EXCHANGE_keys_stefan_n2b ( min = get_unit (keys); if (NULL == min) return GNUNET_SYSERR; - if (1.0d <= keys->stefan_lin) + if (1.0 <= keys->stefan_lin) { /* This cannot work, linear STEFAN fee estimate always exceed any gross amount. */