Fix compiler warnings.

This commit is contained in:
Marcello Stanisci 2018-10-22 12:29:34 +02:00
parent 7c9b41472f
commit b0d00823eb
No known key found for this signature in database
GPG Key ID: 8D526861953F4C0F
14 changed files with 21 additions and 16 deletions

View File

@ -247,7 +247,7 @@ TALER_BANK_admin_add_incoming (struct GNUNET_CURL_Context *ctx,
aai->job = GNUNET_CURL_job_add (ctx,
eh,
GNUNET_NO,
&handle_admin_add_incoming_finished,
(GC_JCC) &handle_admin_add_incoming_finished,
aai);
return aai;
}

View File

@ -350,7 +350,7 @@ TALER_BANK_history (struct GNUNET_CURL_Context *ctx,
hh->job = GNUNET_CURL_job_add (ctx,
eh,
GNUNET_NO,
&handle_history_finished,
(GC_JCC) &handle_history_finished,
hh);
return hh;
}

View File

@ -215,7 +215,7 @@ TALER_BANK_reject (struct GNUNET_CURL_Context *ctx,
rh->job = GNUNET_CURL_job_add (ctx,
eh,
GNUNET_NO,
&handle_reject_finished,
(GC_JCC) &handle_reject_finished,
rh);
return rh;
}

View File

@ -511,7 +511,7 @@ TALER_EXCHANGE_deposit (struct TALER_EXCHANGE_Handle *exchange,
dh->job = GNUNET_CURL_job_add (ctx,
eh,
GNUNET_YES,
&handle_deposit_finished,
(GC_JCC) &handle_deposit_finished,
dh);
return dh;
}

View File

@ -59,7 +59,6 @@
GNUNET_log (type, "Curl function `%s' has failed at `%s:%d' with error: %s", \
function, __FILE__, __LINE__, curl_easy_strerror (code));
/**
* Stages of initialization for the `struct TALER_EXCHANGE_Handle`
*/
@ -1485,7 +1484,7 @@ request_keys (void *cls)
kr->job = GNUNET_CURL_job_add (exchange->ctx,
eh,
GNUNET_NO,
&keys_completed_cb,
(GC_JCC) &keys_completed_cb,
kr);
exchange->kr = kr;
}

View File

@ -344,7 +344,7 @@ TALER_EXCHANGE_payback (struct TALER_EXCHANGE_Handle *exchange,
ph->job = GNUNET_CURL_job_add (ctx,
eh,
GNUNET_YES,
&handle_payback_finished,
(GC_JCC) &handle_payback_finished,
ph);
return ph;
}

View File

@ -1218,7 +1218,7 @@ TALER_EXCHANGE_refresh_melt (struct TALER_EXCHANGE_Handle *exchange,
rmh->job = GNUNET_CURL_job_add (ctx,
eh,
GNUNET_YES,
&handle_refresh_melt_finished,
(GC_JCC) &handle_refresh_melt_finished,
rmh);
return rmh;
}
@ -1645,7 +1645,7 @@ TALER_EXCHANGE_refresh_reveal (struct TALER_EXCHANGE_Handle *exchange,
rrh->job = GNUNET_CURL_job_add (ctx,
eh,
GNUNET_YES,
&handle_refresh_reveal_finished,
(GC_JCC) &handle_refresh_reveal_finished,
rrh);
return rrh;
}

View File

@ -415,7 +415,7 @@ TALER_EXCHANGE_refresh_link (struct TALER_EXCHANGE_Handle *exchange,
rlh->job = GNUNET_CURL_job_add (ctx,
eh,
GNUNET_YES,
&handle_refresh_link_finished,
(GC_JCC) &handle_refresh_link_finished,
rlh);
return rlh;
}

View File

@ -386,7 +386,7 @@ refund_obj = json_pack ("{s:o, s:o," /* amount/fee */
rh->job = GNUNET_CURL_job_add (ctx,
eh,
GNUNET_YES,
&handle_refund_finished,
(GC_JCC) &handle_refund_finished,
rh);
return rh;
}

View File

@ -631,7 +631,7 @@ TALER_EXCHANGE_reserve_status (struct TALER_EXCHANGE_Handle *exchange,
rsh->job = GNUNET_CURL_job_add (ctx,
eh,
GNUNET_NO,
&handle_reserve_status_finished,
(GC_JCC) &handle_reserve_status_finished,
rsh);
return rsh;
}
@ -1039,7 +1039,7 @@ reserve_withdraw_internal (struct TALER_EXCHANGE_Handle *exchange,
wsh->job = GNUNET_CURL_job_add (ctx,
eh,
GNUNET_YES,
&handle_reserve_withdraw_finished,
(GC_JCC) &handle_reserve_withdraw_finished,
wsh);
return wsh;
}

View File

@ -337,7 +337,7 @@ TALER_EXCHANGE_track_transaction (struct TALER_EXCHANGE_Handle *exchange,
dwh->job = GNUNET_CURL_job_add (ctx,
eh,
GNUNET_YES,
&handle_deposit_wtid_finished,
(GC_JCC) &handle_deposit_wtid_finished,
dwh);
return dwh;
}

View File

@ -359,7 +359,7 @@ TALER_EXCHANGE_track_transfer (struct TALER_EXCHANGE_Handle *exchange,
wdh->job = GNUNET_CURL_job_add (ctx,
eh,
GNUNET_YES,
&handle_track_transfer_finished,
(GC_JCC) &handle_track_transfer_finished,
wdh);
return wdh;
}

View File

@ -412,7 +412,7 @@ TALER_EXCHANGE_wire (struct TALER_EXCHANGE_Handle *exchange,
wh->job = GNUNET_CURL_job_add (ctx,
eh,
GNUNET_YES,
&handle_wire_finished,
(GC_JCC) &handle_wire_finished,
wh);
return wh;
}

View File

@ -24,6 +24,7 @@
#include <jansson.h>
#include <gnunet/gnunet_json_lib.h>
#include <gnunet/gnunet_curl_lib.h>
#include "taler_util.h"
#include "taler_error_codes.h"
@ -37,6 +38,11 @@
__FILE__, __LINE__, error.text, error.source)
/**
* A shorter name to make type casts less verbose.
*/
typedef GNUNET_CURL_JobCompletionCallback GC_JCC;
/**
* Convert a TALER amount to a JSON object.
*