diff options
author | Christian Grothoff <christian@grothoff.org> | 2024-01-10 10:31:34 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2024-01-10 10:31:34 +0100 |
commit | 9c1fcd730e6a113f0807d737f932bba6a2b8c27f (patch) | |
tree | beb55320acec61cc23c73ea8b38edb450d26795c /src/auditor/taler-auditor-httpd_deposit-confirmation.c | |
parent | 81400220f84892e869fb74a700d14fd4e26afb12 (diff) | |
download | exchange-9c1fcd730e6a113f0807d737f932bba6a2b8c27f.tar.gz exchange-9c1fcd730e6a113f0807d737f932bba6a2b8c27f.tar.bz2 exchange-9c1fcd730e6a113f0807d737f932bba6a2b8c27f.zip |
-fix compiler warnings
Diffstat (limited to 'src/auditor/taler-auditor-httpd_deposit-confirmation.c')
-rw-r--r-- | src/auditor/taler-auditor-httpd_deposit-confirmation.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/auditor/taler-auditor-httpd_deposit-confirmation.c b/src/auditor/taler-auditor-httpd_deposit-confirmation.c index 9a3e5475c..2631c6f58 100644 --- a/src/auditor/taler-auditor-httpd_deposit-confirmation.c +++ b/src/auditor/taler-auditor-httpd_deposit-confirmation.c @@ -459,10 +459,13 @@ TEAH_DEPOSIT_CONFIRMATION_done (void) * Add deposit confirmation to the list. * * @param[in,out] cls a `json_t *` array to extend + * @param serial_id location of the @a dc in the database * @param dc struct of deposit confirmation + * @return #GNUNET_OK to continue to iterate, #GNUNET_SYSERR to stop iterating */ -static void +static enum GNUNET_GenericReturnValue add_deposit_confirmation (void *cls, + uint64_t serial_id, const struct TALER_AUDITORDB_DepositConfirmation *dc) { json_t *list = cls; @@ -474,7 +477,7 @@ add_deposit_confirmation (void *cls, GNUNET_break (0 == json_array_append_new (list, obj)); - + return GNUNET_OK; } @@ -513,11 +516,11 @@ TAH_DEPOSIT_CONFIRMATION_get (struct TAH_RequestHandler *rh, ja = json_array (); GNUNET_break (NULL != ja); // TODO correct below - struct TALER_AUDITORDB_ProgressPointDepositConfirmation ppdc; + struct TALER_AUDITORDB_ProgressPointDepositConfirmation ppdc = { 0 }; // FIXME: initialize... qs = TAH_plugin->get_deposit_confirmations ( TAH_plugin->cls, - &TAH_plugin, + NULL, /* FIXME: master-public key to be removed! */ ppdc.last_deposit_confirmation_serial_id, &add_deposit_confirmation, ja); |