aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2024-09-03 01:05:31 +0200
committerChristian Grothoff <christian@grothoff.org>2024-09-03 01:05:31 +0200
commitbd43ba6f28a7bbf24aca298a5463b7b2a6870c79 (patch)
tree566ce026b0f81b0cf83673531867ef919fa29719
parent1f0e230741d514e71541daa3106aef6975d57e26 (diff)
adjust merchant to exchange API change
-rw-r--r--src/backend/taler-merchant-httpd_private-get-instances-ID-kyc.c2
-rw-r--r--src/backenddb/plugin_merchantdb_postgres.c10
2 files changed, 9 insertions, 3 deletions
diff --git a/src/backend/taler-merchant-httpd_private-get-instances-ID-kyc.c b/src/backend/taler-merchant-httpd_private-get-instances-ID-kyc.c
index 69a9d2b6..a3d3bbe7 100644
--- a/src/backend/taler-merchant-httpd_private-get-instances-ID-kyc.c
+++ b/src/backend/taler-merchant-httpd_private-get-instances-ID-kyc.c
@@ -753,7 +753,7 @@ kyc_with_exchange (void *cls,
ekr->kyc = TALER_EXCHANGE_kyc_check (
TMH_curl_ctx,
ekr->exchange_url,
- ekr->exchange_kyc_serial,
+ &h_payto,
&ap,
GNUNET_TIME_absolute_get_remaining (kc->timeout),
&exchange_check_cb,
diff --git a/src/backenddb/plugin_merchantdb_postgres.c b/src/backenddb/plugin_merchantdb_postgres.c
index 2f499994..2bb74d32 100644
--- a/src/backenddb/plugin_merchantdb_postgres.c
+++ b/src/backenddb/plugin_merchantdb_postgres.c
@@ -336,6 +336,10 @@ postgres_connect (void *cls)
* @return NULL on error, otherwise a `struct TALER_MERCHANTDB_Plugin`
*/
void *
+libtaler_plugin_merchantdb_postgres_init (void *cls);
+
+/* declaration to avoid compiler warning */
+void *
libtaler_plugin_merchantdb_postgres_init (void *cls)
{
const struct GNUNET_CONFIGURATION_Handle *cfg = cls;
@@ -615,8 +619,6 @@ libtaler_plugin_merchantdb_postgres_init (void *cls)
= &TMH_PG_lookup_spent_tokens_by_order;
-
-
return plugin;
}
@@ -628,6 +630,10 @@ libtaler_plugin_merchantdb_postgres_init (void *cls)
* @return NULL (always)
*/
void *
+libtaler_plugin_merchantdb_postgres_done (void *cls);
+
+/* declaration to avoid compiler warning */
+void *
libtaler_plugin_merchantdb_postgres_done (void *cls)
{
struct TALER_MERCHANTDB_Plugin *plugin = cls;