summaryrefslogtreecommitdiff
path: root/src/exchange-lib/exchange_api_handle.c
diff options
context:
space:
mode:
authorMarcello Stanisci <stanisci.m@gmail.com>2018-10-22 16:59:09 +0200
committerMarcello Stanisci <stanisci.m@gmail.com>2018-10-22 16:59:09 +0200
commit60c533562cdac20a7343daef654144f161f348eb (patch)
treec546a31d8a4348e48b573c2fc94ecd702f862b9b /src/exchange-lib/exchange_api_handle.c
parente83964badb5c266992f5b1312b31aa6a14d392e5 (diff)
downloadexchange-60c533562cdac20a7343daef654144f161f348eb.tar.gz
exchange-60c533562cdac20a7343daef654144f161f348eb.tar.bz2
exchange-60c533562cdac20a7343daef654144f161f348eb.zip
Fix compiler warnings.
This reverts changes made in b0d00823eb96de733510354. The warnings are fixed by changing the functions signatures, instead of casting their pointers.
Diffstat (limited to 'src/exchange-lib/exchange_api_handle.c')
-rw-r--r--src/exchange-lib/exchange_api_handle.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/exchange-lib/exchange_api_handle.c b/src/exchange-lib/exchange_api_handle.c
index eb81a79fa..27ee257d9 100644
--- a/src/exchange-lib/exchange_api_handle.c
+++ b/src/exchange-lib/exchange_api_handle.c
@@ -834,13 +834,14 @@ TALER_EXCHANGE_check_keys_current (struct TALER_EXCHANGE_Handle *exchange,
static void
keys_completed_cb (void *cls,
long response_code,
- const json_t *resp_obj)
+ const void *resp_obj)
{
struct KeysRequest *kr = cls;
struct TALER_EXCHANGE_Handle *exchange = kr->exchange;
struct TALER_EXCHANGE_Keys kd;
struct TALER_EXCHANGE_Keys kd_old;
enum TALER_EXCHANGE_VersionCompatibility vc;
+ const json_t *j = resp_obj;
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
"Received keys from URL `%s' with status %ld.\n",
@@ -863,7 +864,7 @@ keys_completed_cb (void *cls,
exchange);
return;
case MHD_HTTP_OK:
- if (NULL == resp_obj)
+ if (NULL == j)
{
response_code = 0;
break;
@@ -902,7 +903,7 @@ keys_completed_cb (void *cls,
}
if (GNUNET_OK !=
- decode_keys_json (resp_obj,
+ decode_keys_json (j,
GNUNET_YES,
&kd,
&vc))
@@ -927,7 +928,7 @@ keys_completed_cb (void *cls,
break;
}
json_decref (exchange->key_data_raw);
- exchange->key_data_raw = json_deep_copy (resp_obj);
+ exchange->key_data_raw = json_deep_copy (j);
exchange->retry_delay = GNUNET_TIME_UNIT_ZERO;
break;
default:
@@ -1484,7 +1485,7 @@ request_keys (void *cls)
kr->job = GNUNET_CURL_job_add (exchange->ctx,
eh,
GNUNET_NO,
- (GC_JCC) &keys_completed_cb,
+ &keys_completed_cb,
kr);
exchange->kr = kr;
}