summaryrefslogtreecommitdiff
path: root/src/exchange/taler-exchange-httpd_refund.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-04-09 00:59:55 +0200
committerChristian Grothoff <christian@grothoff.org>2020-04-09 00:59:55 +0200
commit543fe4ae36649cf64eabb1b1447539bfb0c3c7c2 (patch)
tree81e9bf344e28225ccf425311519738c7fe3b0300 /src/exchange/taler-exchange-httpd_refund.c
parent84a40be0bce66cda800de7891f758a0c69afc7fa (diff)
downloadexchange-543fe4ae36649cf64eabb1b1447539bfb0c3c7c2.tar.gz
exchange-543fe4ae36649cf64eabb1b1447539bfb0c3c7c2.tar.bz2
exchange-543fe4ae36649cf64eabb1b1447539bfb0c3c7c2.zip
make code compiler without warnings with latest libmicrohttpd API
Diffstat (limited to 'src/exchange/taler-exchange-httpd_refund.c')
-rw-r--r--src/exchange/taler-exchange-httpd_refund.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/exchange/taler-exchange-httpd_refund.c b/src/exchange/taler-exchange-httpd_refund.c
index 036a0473..7c2b149f 100644
--- a/src/exchange/taler-exchange-httpd_refund.c
+++ b/src/exchange/taler-exchange-httpd_refund.c
@@ -43,7 +43,7 @@
* @param refund details about the successful refund
* @return MHD result code
*/
-static int
+static MHD_RESULT
reply_refund_success (struct MHD_Connection *connection,
const struct TALER_CoinSpendPublicKeyP *coin_pub,
const struct TALER_EXCHANGEDB_RefundListEntry *refund)
@@ -104,7 +104,7 @@ static enum GNUNET_DB_QueryStatus
refund_transaction (void *cls,
struct MHD_Connection *connection,
struct TALER_EXCHANGEDB_Session *session,
- int *mhd_ret)
+ MHD_RESULT *mhd_ret)
{
const struct TALER_EXCHANGEDB_Refund *refund = cls;
struct TALER_EXCHANGEDB_TransactionList *tl;
@@ -342,7 +342,7 @@ refund_transaction (void *cls,
* @param refund information about the refund
* @return MHD result code
*/
-static int
+static MHD_RESULT
verify_and_execute_refund (struct MHD_Connection *connection,
const struct TALER_EXCHANGEDB_Refund *refund)
{
@@ -468,7 +468,7 @@ verify_and_execute_refund (struct MHD_Connection *connection,
/* Finally run the actual transaction logic */
{
- int mhd_ret;
+ MHD_RESULT mhd_ret;
if (GNUNET_OK !=
TEH_DB_run_transaction (connection,
@@ -497,7 +497,7 @@ verify_and_execute_refund (struct MHD_Connection *connection,
* @param root uploaded JSON data
* @return MHD result code
*/
-int
+MHD_RESULT
TEH_handler_refund (struct MHD_Connection *connection,
const struct TALER_CoinSpendPublicKeyP *coin_pub,
const json_t *root)
@@ -517,7 +517,7 @@ TEH_handler_refund (struct MHD_Connection *connection,
refund.coin.coin_pub = *coin_pub;
{
- int res;
+ enum GNUNET_GenericReturnValue res;
res = TALER_MHD_parse_json_data (connection,
root,
@@ -549,7 +549,7 @@ TEH_handler_refund (struct MHD_Connection *connection,
"refund_amount");
}
{
- int res;
+ MHD_RESULT res;
res = verify_and_execute_refund (connection,
&refund);