aboutsummaryrefslogtreecommitdiff
path: root/src/json
diff options
context:
space:
mode:
authorChristian Grothoff <grothoff@gnunet.org>2023-12-22 22:50:58 +0800
committerChristian Grothoff <grothoff@gnunet.org>2023-12-22 22:50:58 +0800
commit28116298feca3b3c8eaa9cf4cbb69517b795f6ed (patch)
treee5fe7de08f5e9af142ba976c59e125b16ff238b9 /src/json
parent65f8f5a901e1ac83a76f5e7e9ab29490c2daff50 (diff)
-cleanup
Diffstat (limited to 'src/json')
-rw-r--r--src/json/json_helper.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/json/json_helper.c b/src/json/json_helper.c
index e1670d0dc..b339ff682 100644
--- a/src/json/json_helper.c
+++ b/src/json/json_helper.c
@@ -184,7 +184,6 @@ parse_cspec (void *cls,
const char *emsg;
unsigned int eline;
- (void) cls;
memset (r_cspec->currency,
0,
sizeof (r_cspec->currency));
@@ -261,10 +260,10 @@ TALER_JSON_spec_currency_specification (
struct GNUNET_JSON_Specification ret = {
.parser = &parse_cspec,
.cleaner = &clean_cspec,
- .cls = currency,
+ .cls = (void *) currency,
.field = name,
.ptr = r_cspec,
- .ptr_size = 0,
+ .ptr_size = sizeof (*r_cspec),
.size_ptr = NULL
};