commit d748d8c2589f91dc2855eabbb5cd0a285316aa51
parent ecca5d98e76df0737a4ab09919709d4c85eb0610
Author: Christian Grothoff <grothoff@gnunet.org>
Date: Tue, 13 Jan 2026 07:45:29 +0900
-style fixes
Diffstat:
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/json/json_helper.c b/src/json/json_helper.c
@@ -171,8 +171,6 @@ parse_amount_any_array (void *cls,
struct AmountArrayCtx *ctx = cls;
struct TALER_Amount **out = spec->ptr;
- GNUNET_assert (NULL != ctx);
- GNUNET_assert (NULL != out);
*out = NULL;
if (NULL != ctx->len)
*ctx->len = 0;
diff --git a/src/util/amount.c b/src/util/amount.c
@@ -75,7 +75,6 @@ enum GNUNET_GenericReturnValue
TALER_string_to_amount (const char *str,
struct TALER_Amount *amount)
{
- int n;
uint32_t b;
const char *colon;
const char *value;
@@ -131,6 +130,8 @@ TALER_string_to_amount (const char *str,
/* parse value */
while ('.' != *value)
{
+ int n;
+
if ('\0' == *value)
{
/* we are done */
@@ -177,6 +178,8 @@ TALER_string_to_amount (const char *str,
b = TALER_AMOUNT_FRAC_BASE / 10;
while ('\0' != *value)
{
+ int n;
+
if (0 == b)
{
GNUNET_log (GNUNET_ERROR_TYPE_WARNING,