diff options
author | Marcello Stanisci <stanisci.m@gmail.com> | 2018-10-22 16:59:09 +0200 |
---|---|---|
committer | Marcello Stanisci <stanisci.m@gmail.com> | 2018-10-22 16:59:09 +0200 |
commit | 60c533562cdac20a7343daef654144f161f348eb (patch) | |
tree | c546a31d8a4348e48b573c2fc94ecd702f862b9b /src/exchange-lib/exchange_api_wire.c | |
parent | e83964badb5c266992f5b1312b31aa6a14d392e5 (diff) |
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_wire.c')
-rw-r--r-- | src/exchange-lib/exchange_api_wire.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/exchange-lib/exchange_api_wire.c b/src/exchange-lib/exchange_api_wire.c index ef64a777..894fd494 100644 --- a/src/exchange-lib/exchange_api_wire.c +++ b/src/exchange-lib/exchange_api_wire.c @@ -202,15 +202,16 @@ lookup_fee (const struct FeeMap *fm, * * @param cls the `struct TALER_EXCHANGE_WireHandle` * @param response_code HTTP response code, 0 on error - * @param json parsed JSON result, NULL on error + * @param response parsed JSON result, NULL on error */ static void handle_wire_finished (void *cls, long response_code, - const json_t *json) + const void *response) { struct TALER_EXCHANGE_WireHandle *wh = cls; enum TALER_ErrorCode ec; + const json_t *j = response; wh->job = NULL; ec = TALER_EC_NONE; @@ -232,7 +233,7 @@ handle_wire_finished (void *cls, }; if (GNUNET_OK != - GNUNET_JSON_parse (json, + GNUNET_JSON_parse (j, spec, NULL, NULL)) { @@ -359,7 +360,7 @@ handle_wire_finished (void *cls, if (NULL != wh->cb) wh->cb (wh->cb_cls, response_code, - (0 == response_code) ? ec : TALER_JSON_get_error_code (json), + (0 == response_code) ? ec : TALER_JSON_get_error_code (j), 0, NULL); TALER_EXCHANGE_wire_cancel (wh); @@ -412,7 +413,7 @@ TALER_EXCHANGE_wire (struct TALER_EXCHANGE_Handle *exchange, wh->job = GNUNET_CURL_job_add (ctx, eh, GNUNET_YES, - (GC_JCC) &handle_wire_finished, + &handle_wire_finished, wh); return wh; } |