aboutsummaryrefslogtreecommitdiff
path: root/src/json
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2024-08-27 00:15:54 +0200
committerChristian Grothoff <christian@grothoff.org>2024-08-27 00:15:54 +0200
commit4521504d17fd2e37c9159b98aba131bd4b5b693f (patch)
tree684b83f534a646670ca9716938352e7f40b99901 /src/json
parent0b25fe9e91304f9b0be6acebba243481615b7907 (diff)
-style fixes
Diffstat (limited to 'src/json')
-rw-r--r--src/json/json.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/json/json.c b/src/json/json.c
index 639bd530c..551605cb9 100644
--- a/src/json/json.c
+++ b/src/json/json.c
@@ -701,6 +701,8 @@ parse_path (json_t *obj,
{
char *end_bracket = strchr (bracket,
']');
+ json_t *array;
+
if (NULL == end_bracket)
{
GNUNET_free (id);
@@ -708,12 +710,10 @@ parse_path (json_t *obj,
return GNUNET_SYSERR;
}
*end_bracket = '\0';
-
*bracket = '\0';
bracket++;
-
- json_t *array = json_object_get (obj,
- next_id);
+ array = json_object_get (obj,
+ next_id);
if (0 == strcmp (bracket,
"*"))
{
@@ -808,7 +808,7 @@ TALER_JSON_get_error_code (const json_t *json)
return TALER_EC_INVALID;
}
if (json_is_integer (jc))
- return (enum TALER_ErrorCode) json_integer_value (jc);
+ return (enum TALER_ErrorCode) (int) json_integer_value (jc);
GNUNET_break_op (0);
return TALER_EC_INVALID;
}