summaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2023-09-24 12:07:26 +0200
committerChristian Grothoff <christian@grothoff.org>2023-09-24 12:07:26 +0200
commitac941ca266732341272284a588df55aa1d260c54 (patch)
tree6ded9153f7c9916aa0ef345949d4aa25b623ef84 /src/util
parent7a3b1c6b88a86ccb98a9d60675f8f0c1a7e3fe45 (diff)
downloadexchange-ac941ca266732341272284a588df55aa1d260c54.tar.gz
exchange-ac941ca266732341272284a588df55aa1d260c54.tar.bz2
exchange-ac941ca266732341272284a588df55aa1d260c54.zip
-simplify code
Diffstat (limited to 'src/util')
-rw-r--r--src/util/test_age_restriction.c35
1 files changed, 17 insertions, 18 deletions
diff --git a/src/util/test_age_restriction.c b/src/util/test_age_restriction.c
index 406d16efe..02b16c3e6 100644
--- a/src/util/test_age_restriction.c
+++ b/src/util/test_age_restriction.c
@@ -80,24 +80,24 @@ test_groups (void)
.bits =
1 | 1 << 5 | 1 << 13 | 1 << 23,
- .group = { 0, 0, 0, 0, 0,
- 1, 1, 1, 1, 1, 1, 1, 1,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 3, 3, 3, 3, 3, 3, 3, 3, 3, 3 }
+ .group = { 0, 0, 0, 0, 0,
+ 1, 1, 1, 1, 1, 1, 1, 1,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 3, 3, 3, 3, 3, 3, 3, 3, 3, 3 }
},
{
.bits =
1 | 1 << 8 | 1 << 10 | 1 << 12 | 1 << 14 | 1 << 16 | 1 << 18 | 1 << 21,
- .group = { 0, 0, 0, 0, 0, 0, 0, 0,
- 1, 1,
- 2, 2,
- 3, 3,
- 4, 4,
- 5, 5,
- 6, 6, 6,
- 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7}
+ .group = { 0, 0, 0, 0, 0, 0, 0, 0,
+ 1, 1,
+ 2, 2,
+ 3, 3,
+ 4, 4,
+ 5, 5,
+ 6, 6, 6,
+ 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7}
}
@@ -168,7 +168,7 @@ test_dates (void)
* loop */
{.date = NULL, .expected = 0, .ret = GNUNET_OK },
};
- char buf[256]={0};
+ char buf[256] = {0};
for (uint8_t t = 0; t < sizeof(test) / sizeof(test[0]); t++)
{
@@ -321,11 +321,10 @@ test_attestation (void)
&seed,
sizeof(seed));
- ret = TALER_age_restriction_commit (&age_mask,
- age,
- &seed,
- &acp[0]);
-
+ TALER_age_restriction_commit (&age_mask,
+ age,
+ &seed,
+ &acp[0]);
printf (
"commit(age:%d) == %d; proof.num: %ld; age_group: %d\n",
age,