summaryrefslogtreecommitdiff
path: root/src/backend
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2023-01-16 19:00:15 +0100
committerChristian Grothoff <christian@grothoff.org>2023-01-16 19:00:15 +0100
commitbe1daf172c17cd60c7b8493d1f723db5ded0f8c1 (patch)
treef369099ff993fc1c8378a4fc01fc1a3157b4775d /src/backend
parent3de9e044eddbe4d7054df875d516be1273f5be7c (diff)
downloadmerchant-be1daf172c17cd60c7b8493d1f723db5ded0f8c1.tar.gz
merchant-be1daf172c17cd60c7b8493d1f723db5ded0f8c1.tar.bz2
merchant-be1daf172c17cd60c7b8493d1f723db5ded0f8c1.zip
code clean up and get KYC test to pass again with recent exchange changes
Diffstat (limited to 'src/backend')
-rw-r--r--src/backend/taler-merchant-httpd_post-using-templates.h1
-rw-r--r--src/backend/taler-merchant-httpd_private-delete-pending-webhooks-ID.c8
-rw-r--r--src/backend/taler-merchant-httpd_private-get-templates.c11
3 files changed, 7 insertions, 13 deletions
diff --git a/src/backend/taler-merchant-httpd_post-using-templates.h b/src/backend/taler-merchant-httpd_post-using-templates.h
index 5087da67..2f788c40 100644
--- a/src/backend/taler-merchant-httpd_post-using-templates.h
+++ b/src/backend/taler-merchant-httpd_post-using-templates.h
@@ -26,6 +26,7 @@
/**
* Generate a template that customer can use it. Returns an MHD_RESULT.
*
+ * @param rh details about this request handler
* @param connection the MHD connection to handle
* @param[in,out] hc context with further information about the request
* @return MHD result code
diff --git a/src/backend/taler-merchant-httpd_private-delete-pending-webhooks-ID.c b/src/backend/taler-merchant-httpd_private-delete-pending-webhooks-ID.c
index 0e6a3bfb..16b7e3ce 100644
--- a/src/backend/taler-merchant-httpd_private-delete-pending-webhooks-ID.c
+++ b/src/backend/taler-merchant-httpd_private-delete-pending-webhooks-ID.c
@@ -23,14 +23,6 @@
#include <taler/taler_json_lib.h>
-/**
- * Handle a DELETE "/pending-webhooks/$ID" request.
- *
- * @param rh context of the handler
- * @param connection the MHD connection to handle
- * @param[in,out] hc context with further information about the request
- * @return MHD result code
- */
MHD_RESULT
TMH_private_delete_pending_webhooks_ID (const struct TMH_RequestHandler *rh,
struct MHD_Connection *connection,
diff --git a/src/backend/taler-merchant-httpd_private-get-templates.c b/src/backend/taler-merchant-httpd_private-get-templates.c
index c1d72a55..e59e47c9 100644
--- a/src/backend/taler-merchant-httpd_private-get-templates.c
+++ b/src/backend/taler-merchant-httpd_private-get-templates.c
@@ -27,6 +27,7 @@
*
* @param cls a `json_t *` JSON array to build
* @param template_id ID of the template
+ * @param template_description human-readable description for the template
*/
static void
add_template (void *cls,
@@ -48,8 +49,8 @@ add_template (void *cls,
MHD_RESULT
TMH_private_get_templates (const struct TMH_RequestHandler *rh,
- struct MHD_Connection *connection,
- struct TMH_HandlerContext *hc)
+ struct MHD_Connection *connection,
+ struct TMH_HandlerContext *hc)
{
json_t *pa;
enum GNUNET_DB_QueryStatus qs;
@@ -57,9 +58,9 @@ TMH_private_get_templates (const struct TMH_RequestHandler *rh,
pa = json_array ();
GNUNET_assert (NULL != pa);
qs = TMH_db->lookup_templates (TMH_db->cls,
- hc->instance->settings.id,
- &add_template,
- pa);
+ hc->instance->settings.id,
+ &add_template,
+ pa);
if (0 > qs)
{
GNUNET_break (0);