summaryrefslogtreecommitdiff
path: root/src/json
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-01-18 19:16:33 +0100
committerChristian Grothoff <christian@grothoff.org>2020-01-18 19:16:44 +0100
commit8dbc19758b87c41ada780c20edac0c500ab2daa1 (patch)
tree88f24a9f5d304a1b3a5c9ab6509395bb38af3cfb /src/json
parentd53eca894011f31b698a13cf41d31e2d19c7e427 (diff)
downloadexchange-8dbc19758b87c41ada780c20edac0c500ab2daa1.tar.gz
exchange-8dbc19758b87c41ada780c20edac0c500ab2daa1.tar.bz2
exchange-8dbc19758b87c41ada780c20edac0c500ab2daa1.zip
fix compiler warnings
Diffstat (limited to 'src/json')
-rw-r--r--src/json/json_wire.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/json/json_wire.c b/src/json/json_wire.c
index 229878ae..74a0b75f 100644
--- a/src/json/json_wire.c
+++ b/src/json/json_wire.c
@@ -233,7 +233,6 @@ validate_iban (const char *iban)
unsigned long long dividend;
unsigned long long remainder;
int nread;
- int ret;
unsigned int i;
unsigned int j;
@@ -289,10 +288,10 @@ validate_iban (const char *iban)
for (unsigned int i = 0; i<j; i += 16)
{
if (1 !=
- (ret = sscanf (&nbuf[i],
- "%16llu %n",
- &dividend,
- &nread)))
+ sscanf (&nbuf[i],
+ "%16llu %n",
+ &dividend,
+ &nread))
{
GNUNET_free (nbuf);
GNUNET_break_op (0);