summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarcello Stanisci <marcello.stanisci@inria.fr>2016-06-11 14:33:52 +0200
committerMarcello Stanisci <marcello.stanisci@inria.fr>2016-06-11 14:33:52 +0200
commitd7f38a845a41cae501ef8d251cadf4fababf64e0 (patch)
treec7ddd1184c51b12cfc0f721bf4da486c564fdb0d /src
parentdd7687a5f74f4592dff7149e7f21571ff192ddb4 (diff)
downloadexchange-d7f38a845a41cae501ef8d251cadf4fababf64e0.tar.gz
exchange-d7f38a845a41cae501ef8d251cadf4fababf64e0.tar.bz2
exchange-d7f38a845a41cae501ef8d251cadf4fababf64e0.zip
addressing compiler warnings
Diffstat (limited to 'src')
-rw-r--r--src/benchmark/taler-exchange-benchmark.c27
1 files changed, 25 insertions, 2 deletions
diff --git a/src/benchmark/taler-exchange-benchmark.c b/src/benchmark/taler-exchange-benchmark.c
index b83c4ab33..88aaedcf9 100644
--- a/src/benchmark/taler-exchange-benchmark.c
+++ b/src/benchmark/taler-exchange-benchmark.c
@@ -468,7 +468,7 @@ deposit_cb (void *cls,
}
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
"prepared blob %d\n",
- blob_size);
+ (unsigned int) blob_size);
refreshed_once = GNUNET_YES;
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
@@ -852,7 +852,9 @@ do_shutdown (void *cls)
{
if (NULL != reserves[i].aih)
{
- GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Cancelling %d-th reserve\n", i);
+ GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+ "Cancelling %d-th reserve\n",
+ i);
TALER_EXCHANGE_admin_add_incoming_cancel(reserves[i].aih);
reserves[i].aih = NULL;
}
@@ -862,21 +864,33 @@ do_shutdown (void *cls)
{
if (NULL != coins[i].wsh)
{
+ GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+ "Cancelling %d-th coin withdraw handle\n",
+ i);
TALER_EXCHANGE_reserve_withdraw_cancel(coins[i].wsh);
coins[i].wsh = NULL;
}
if (NULL != coins[i].dh)
{
+ GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+ "Cancelling %d-th coin deposit handle\n",
+ i);
TALER_EXCHANGE_deposit_cancel(coins[i].dh);
coins[i].dh = NULL;
}
if (NULL != coins[i].rmh)
{
+ GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+ "Cancelling %d-th coin melt handle\n",
+ i);
TALER_EXCHANGE_refresh_melt_cancel(coins[i].rmh);
coins[i].rmh = NULL;
}
if (NULL != coins[i].rrh)
{
+ GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+ "Cancelling %d-th coin reveal handle\n",
+ i);
TALER_EXCHANGE_refresh_reveal_cancel(coins[i].rrh);
coins[i].rmh = NULL;
}
@@ -894,19 +908,28 @@ do_shutdown (void *cls)
if (NULL != exchange)
{
+ GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+ "Disconnecting from exchange\n");
TALER_EXCHANGE_disconnect (exchange);
exchange = NULL;
}
if (NULL != ctx)
{
+ GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+ "Invoking GNUNET_CURL_fini()\n");
GNUNET_CURL_fini (ctx);
ctx = NULL;
}
if (NULL != rc)
{
+ GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+ "Invoking GNUNET_CURL_gnunet_rc_destroy()\n");
+ GNUNET_CURL_fini (ctx); // FIXME this guy segfaults at curl.c:556
GNUNET_CURL_gnunet_rc_destroy (rc);
rc = NULL;
}
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ "All (?) tasks shut down\n");
}