diff options
m--------- | contrib/gana | 0 | ||||
m--------- | doc/prebuilt | 0 | ||||
-rw-r--r-- | src/auditor/taler-auditor-httpd_deposit-confirmation.c | 11 |
3 files changed, 7 insertions, 4 deletions
diff --git a/contrib/gana b/contrib/gana -Subproject 6d3fb428f0a2dd5bc5f35516ea77c32c2cf0ecf +Subproject 9eddc2cf7b65bb43d285c75ef22fd9bc9cc7020 diff --git a/doc/prebuilt b/doc/prebuilt -Subproject 5e47a72e8a2b5086dfdae4078f695155f5ed7af +Subproject 5e7026c5cef101c90b6dc58096e0a0946ef11b0 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); |