diff options
author | Christian Grothoff <christian@grothoff.org> | 2024-08-27 00:15:54 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2024-08-27 00:15:54 +0200 |
commit | 4521504d17fd2e37c9159b98aba131bd4b5b693f (patch) | |
tree | 684b83f534a646670ca9716938352e7f40b99901 /src/util/crypto_confirmation.c | |
parent | 0b25fe9e91304f9b0be6acebba243481615b7907 (diff) |
-style fixes
Diffstat (limited to 'src/util/crypto_confirmation.c')
-rw-r--r-- | src/util/crypto_confirmation.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/util/crypto_confirmation.c b/src/util/crypto_confirmation.c index 99552f150..ee043404f 100644 --- a/src/util/crypto_confirmation.c +++ b/src/util/crypto_confirmation.c @@ -29,7 +29,7 @@ * How long is a TOTP code valid? */ #define TOTP_VALIDITY_PERIOD GNUNET_TIME_relative_multiply ( \ - GNUNET_TIME_UNIT_SECONDS, 30) + GNUNET_TIME_UNIT_SECONDS, 30) /** * Range of time we allow (plus-minus). @@ -132,6 +132,7 @@ TALER_rfc3548_base32decode (const char *val, { if ((rpos < val_size) && (vbit < 8)) { + const char *p; char c = val[rpos++]; if (c == '=') @@ -144,7 +145,7 @@ TALER_rfc3548_base32decode (const char *val, break; /* Ok, 2x '=' padding is allowed */ return -1; /* invalid padding */ } - const char *p = strchr (decTable__, toupper (c)); + p = strchr (decTable__, toupper (c)); if (! p) { /* invalid character */ |