summaryrefslogtreecommitdiff
path: root/src/lib/merchant_api_get_webhooks.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/merchant_api_get_webhooks.c')
-rw-r--r--src/lib/merchant_api_get_webhooks.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/merchant_api_get_webhooks.c b/src/lib/merchant_api_get_webhooks.c
index c80a94b9..f5c211cf 100644
--- a/src/lib/merchant_api_get_webhooks.c
+++ b/src/lib/merchant_api_get_webhooks.c
@@ -73,7 +73,7 @@ struct TALER_MERCHANT_WebhooksGetHandle
*/
static int
parse_webhooks (const json_t *ia,
- struct TALER_MERCHANT_webhooksGetHandle *wgh)
+ struct TALER_MERCHANT_WebhooksGetHandle *wgh)
{
unsigned int ies_len = json_array_size (ia);
struct TALER_MERCHANT_WebhookEntry ies[ies_len];
@@ -108,7 +108,7 @@ parse_webhooks (const json_t *ia,
.http_status = MHD_HTTP_OK
};
- wgh->cb (tgh->cb_cls,
+ wgh->cb (wgh->cb_cls,
&hr,
ies_len,
ies);
@@ -131,7 +131,7 @@ handle_get_webhooks_finished (void *cls,
long response_code,
const void *response)
{
- struct TALER_MERCHANT_WebhooksGetHandle *tgh = cls;
+ struct TALER_MERCHANT_WebhooksGetHandle *wgh = cls;
const json_t *json = response;
struct TALER_MERCHANT_HttpResponse hr = {
.http_status = (unsigned int) response_code,
@@ -165,7 +165,7 @@ handle_get_webhooks_finished (void *cls,
{
if ( (! json_is_array (webhooks)) ||
(GNUNET_OK ==
- parse_templates (webhooks,
+ parse_webhooks (webhooks,
wgh)) )
{
GNUNET_JSON_parse_free (spec);
@@ -196,7 +196,7 @@ handle_get_webhooks_finished (void *cls,
(int) hr.ec);
break;
}
- tgh->cb (wgh->cb_cls,
+ wgh->cb (wgh->cb_cls,
&hr,
0,
NULL);