Fix compiler warnings.
This commit is contained in:
parent
7c9b41472f
commit
b0d00823eb
@ -247,7 +247,7 @@ TALER_BANK_admin_add_incoming (struct GNUNET_CURL_Context *ctx,
|
|||||||
aai->job = GNUNET_CURL_job_add (ctx,
|
aai->job = GNUNET_CURL_job_add (ctx,
|
||||||
eh,
|
eh,
|
||||||
GNUNET_NO,
|
GNUNET_NO,
|
||||||
&handle_admin_add_incoming_finished,
|
(GC_JCC) &handle_admin_add_incoming_finished,
|
||||||
aai);
|
aai);
|
||||||
return aai;
|
return aai;
|
||||||
}
|
}
|
||||||
|
@ -350,7 +350,7 @@ TALER_BANK_history (struct GNUNET_CURL_Context *ctx,
|
|||||||
hh->job = GNUNET_CURL_job_add (ctx,
|
hh->job = GNUNET_CURL_job_add (ctx,
|
||||||
eh,
|
eh,
|
||||||
GNUNET_NO,
|
GNUNET_NO,
|
||||||
&handle_history_finished,
|
(GC_JCC) &handle_history_finished,
|
||||||
hh);
|
hh);
|
||||||
return hh;
|
return hh;
|
||||||
}
|
}
|
||||||
|
@ -215,7 +215,7 @@ TALER_BANK_reject (struct GNUNET_CURL_Context *ctx,
|
|||||||
rh->job = GNUNET_CURL_job_add (ctx,
|
rh->job = GNUNET_CURL_job_add (ctx,
|
||||||
eh,
|
eh,
|
||||||
GNUNET_NO,
|
GNUNET_NO,
|
||||||
&handle_reject_finished,
|
(GC_JCC) &handle_reject_finished,
|
||||||
rh);
|
rh);
|
||||||
return rh;
|
return rh;
|
||||||
}
|
}
|
||||||
|
@ -511,7 +511,7 @@ TALER_EXCHANGE_deposit (struct TALER_EXCHANGE_Handle *exchange,
|
|||||||
dh->job = GNUNET_CURL_job_add (ctx,
|
dh->job = GNUNET_CURL_job_add (ctx,
|
||||||
eh,
|
eh,
|
||||||
GNUNET_YES,
|
GNUNET_YES,
|
||||||
&handle_deposit_finished,
|
(GC_JCC) &handle_deposit_finished,
|
||||||
dh);
|
dh);
|
||||||
return dh;
|
return dh;
|
||||||
}
|
}
|
||||||
|
@ -59,7 +59,6 @@
|
|||||||
GNUNET_log (type, "Curl function `%s' has failed at `%s:%d' with error: %s", \
|
GNUNET_log (type, "Curl function `%s' has failed at `%s:%d' with error: %s", \
|
||||||
function, __FILE__, __LINE__, curl_easy_strerror (code));
|
function, __FILE__, __LINE__, curl_easy_strerror (code));
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Stages of initialization for the `struct TALER_EXCHANGE_Handle`
|
* 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,
|
kr->job = GNUNET_CURL_job_add (exchange->ctx,
|
||||||
eh,
|
eh,
|
||||||
GNUNET_NO,
|
GNUNET_NO,
|
||||||
&keys_completed_cb,
|
(GC_JCC) &keys_completed_cb,
|
||||||
kr);
|
kr);
|
||||||
exchange->kr = kr;
|
exchange->kr = kr;
|
||||||
}
|
}
|
||||||
|
@ -344,7 +344,7 @@ TALER_EXCHANGE_payback (struct TALER_EXCHANGE_Handle *exchange,
|
|||||||
ph->job = GNUNET_CURL_job_add (ctx,
|
ph->job = GNUNET_CURL_job_add (ctx,
|
||||||
eh,
|
eh,
|
||||||
GNUNET_YES,
|
GNUNET_YES,
|
||||||
&handle_payback_finished,
|
(GC_JCC) &handle_payback_finished,
|
||||||
ph);
|
ph);
|
||||||
return ph;
|
return ph;
|
||||||
}
|
}
|
||||||
|
@ -1218,7 +1218,7 @@ TALER_EXCHANGE_refresh_melt (struct TALER_EXCHANGE_Handle *exchange,
|
|||||||
rmh->job = GNUNET_CURL_job_add (ctx,
|
rmh->job = GNUNET_CURL_job_add (ctx,
|
||||||
eh,
|
eh,
|
||||||
GNUNET_YES,
|
GNUNET_YES,
|
||||||
&handle_refresh_melt_finished,
|
(GC_JCC) &handle_refresh_melt_finished,
|
||||||
rmh);
|
rmh);
|
||||||
return rmh;
|
return rmh;
|
||||||
}
|
}
|
||||||
@ -1645,7 +1645,7 @@ TALER_EXCHANGE_refresh_reveal (struct TALER_EXCHANGE_Handle *exchange,
|
|||||||
rrh->job = GNUNET_CURL_job_add (ctx,
|
rrh->job = GNUNET_CURL_job_add (ctx,
|
||||||
eh,
|
eh,
|
||||||
GNUNET_YES,
|
GNUNET_YES,
|
||||||
&handle_refresh_reveal_finished,
|
(GC_JCC) &handle_refresh_reveal_finished,
|
||||||
rrh);
|
rrh);
|
||||||
return rrh;
|
return rrh;
|
||||||
}
|
}
|
||||||
|
@ -415,7 +415,7 @@ TALER_EXCHANGE_refresh_link (struct TALER_EXCHANGE_Handle *exchange,
|
|||||||
rlh->job = GNUNET_CURL_job_add (ctx,
|
rlh->job = GNUNET_CURL_job_add (ctx,
|
||||||
eh,
|
eh,
|
||||||
GNUNET_YES,
|
GNUNET_YES,
|
||||||
&handle_refresh_link_finished,
|
(GC_JCC) &handle_refresh_link_finished,
|
||||||
rlh);
|
rlh);
|
||||||
return rlh;
|
return rlh;
|
||||||
}
|
}
|
||||||
|
@ -386,7 +386,7 @@ refund_obj = json_pack ("{s:o, s:o," /* amount/fee */
|
|||||||
rh->job = GNUNET_CURL_job_add (ctx,
|
rh->job = GNUNET_CURL_job_add (ctx,
|
||||||
eh,
|
eh,
|
||||||
GNUNET_YES,
|
GNUNET_YES,
|
||||||
&handle_refund_finished,
|
(GC_JCC) &handle_refund_finished,
|
||||||
rh);
|
rh);
|
||||||
return rh;
|
return rh;
|
||||||
}
|
}
|
||||||
|
@ -631,7 +631,7 @@ TALER_EXCHANGE_reserve_status (struct TALER_EXCHANGE_Handle *exchange,
|
|||||||
rsh->job = GNUNET_CURL_job_add (ctx,
|
rsh->job = GNUNET_CURL_job_add (ctx,
|
||||||
eh,
|
eh,
|
||||||
GNUNET_NO,
|
GNUNET_NO,
|
||||||
&handle_reserve_status_finished,
|
(GC_JCC) &handle_reserve_status_finished,
|
||||||
rsh);
|
rsh);
|
||||||
return rsh;
|
return rsh;
|
||||||
}
|
}
|
||||||
@ -1039,7 +1039,7 @@ reserve_withdraw_internal (struct TALER_EXCHANGE_Handle *exchange,
|
|||||||
wsh->job = GNUNET_CURL_job_add (ctx,
|
wsh->job = GNUNET_CURL_job_add (ctx,
|
||||||
eh,
|
eh,
|
||||||
GNUNET_YES,
|
GNUNET_YES,
|
||||||
&handle_reserve_withdraw_finished,
|
(GC_JCC) &handle_reserve_withdraw_finished,
|
||||||
wsh);
|
wsh);
|
||||||
return wsh;
|
return wsh;
|
||||||
}
|
}
|
||||||
|
@ -337,7 +337,7 @@ TALER_EXCHANGE_track_transaction (struct TALER_EXCHANGE_Handle *exchange,
|
|||||||
dwh->job = GNUNET_CURL_job_add (ctx,
|
dwh->job = GNUNET_CURL_job_add (ctx,
|
||||||
eh,
|
eh,
|
||||||
GNUNET_YES,
|
GNUNET_YES,
|
||||||
&handle_deposit_wtid_finished,
|
(GC_JCC) &handle_deposit_wtid_finished,
|
||||||
dwh);
|
dwh);
|
||||||
return dwh;
|
return dwh;
|
||||||
}
|
}
|
||||||
|
@ -359,7 +359,7 @@ TALER_EXCHANGE_track_transfer (struct TALER_EXCHANGE_Handle *exchange,
|
|||||||
wdh->job = GNUNET_CURL_job_add (ctx,
|
wdh->job = GNUNET_CURL_job_add (ctx,
|
||||||
eh,
|
eh,
|
||||||
GNUNET_YES,
|
GNUNET_YES,
|
||||||
&handle_track_transfer_finished,
|
(GC_JCC) &handle_track_transfer_finished,
|
||||||
wdh);
|
wdh);
|
||||||
return wdh;
|
return wdh;
|
||||||
}
|
}
|
||||||
|
@ -412,7 +412,7 @@ TALER_EXCHANGE_wire (struct TALER_EXCHANGE_Handle *exchange,
|
|||||||
wh->job = GNUNET_CURL_job_add (ctx,
|
wh->job = GNUNET_CURL_job_add (ctx,
|
||||||
eh,
|
eh,
|
||||||
GNUNET_YES,
|
GNUNET_YES,
|
||||||
&handle_wire_finished,
|
(GC_JCC) &handle_wire_finished,
|
||||||
wh);
|
wh);
|
||||||
return wh;
|
return wh;
|
||||||
}
|
}
|
||||||
|
@ -24,6 +24,7 @@
|
|||||||
|
|
||||||
#include <jansson.h>
|
#include <jansson.h>
|
||||||
#include <gnunet/gnunet_json_lib.h>
|
#include <gnunet/gnunet_json_lib.h>
|
||||||
|
#include <gnunet/gnunet_curl_lib.h>
|
||||||
#include "taler_util.h"
|
#include "taler_util.h"
|
||||||
#include "taler_error_codes.h"
|
#include "taler_error_codes.h"
|
||||||
|
|
||||||
@ -37,6 +38,11 @@
|
|||||||
__FILE__, __LINE__, error.text, error.source)
|
__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.
|
* Convert a TALER amount to a JSON object.
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user