diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-01-20 01:23:02 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-01-20 01:23:02 +0100 |
commit | 8ce6d32f63a81e6ea61971859152e4a5ec3b7c40 (patch) | |
tree | a9fbee64baa4a2001bd039dcbcbe2704b13af0a2 /src/json/json_wire.c | |
parent | 500a7fe2bb7a5a7c722946fb0c87324e0d8172e8 (diff) | |
download | exchange-8ce6d32f63a81e6ea61971859152e4a5ec3b7c40.tar.xz |
beautification
Diffstat (limited to 'src/json/json_wire.c')
-rw-r--r-- | src/json/json_wire.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/json/json_wire.c b/src/json/json_wire.c index 8480b4e86..4fc4cfead 100644 --- a/src/json/json_wire.c +++ b/src/json/json_wire.c @@ -232,7 +232,6 @@ validate_iban (const char *iban) char *nbuf; unsigned long long dividend; unsigned long long remainder; - int nread; unsigned int i; unsigned int j; @@ -287,6 +286,8 @@ validate_iban (const char *iban) remainder = 0; for (unsigned int i = 0; i<j; i += 16) { + int nread; + if (1 != sscanf (&nbuf[i], "%16llu %n", @@ -311,7 +312,7 @@ validate_iban (const char *iban) /** - * Valudate payto://iban/ account URL (only account information, + * Validate payto://iban/ account URL (only account information, * wire subject and amount are ignored). * * @param account_url URL to parse @@ -319,7 +320,7 @@ validate_iban (const char *iban) * #GNUNET_NO if @a account_url is a payto URI of a different type, * #GNUNET_SYSERR if the IBAN (checksum) is incorrect */ -int +static int validate_payto_iban (const char *account_url) { const char *iban; |