diff options
author | Christian Grothoff <christian@grothoff.org> | 2024-08-27 00:35:01 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2024-08-27 00:35:11 +0200 |
commit | 740194aaa7201f5d294a7de4c92b417b83279d86 (patch) | |
tree | 4e71a6dbc9e597b4914ee8595775a335eea45029 /src/util/test_age_restriction.c | |
parent | 37ea1398bbdbd2ee297b445fab0c919f0d32bb79 (diff) |
-style fixes
Diffstat (limited to 'src/util/test_age_restriction.c')
-rw-r--r-- | src/util/test_age_restriction.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/util/test_age_restriction.c b/src/util/test_age_restriction.c index 61499e5e0..0d87926d4 100644 --- a/src/util/test_age_restriction.c +++ b/src/util/test_age_restriction.c @@ -30,7 +30,7 @@ * @return String representation of the age mask, allocated by GNUNET_malloc. * Can be used as value in the TALER config. */ -char * +static char * age_mask_to_string ( const struct TALER_AgeMask *m) { @@ -68,7 +68,7 @@ age_mask_to_string ( } -enum GNUNET_GenericReturnValue +static enum GNUNET_GenericReturnValue test_groups (void) { struct @@ -129,7 +129,7 @@ test_groups (void) } -enum GNUNET_GenericReturnValue +static enum GNUNET_GenericReturnValue test_dates (void) { struct TALER_AgeMask mask = { @@ -137,7 +137,7 @@ test_dates (void) }; struct { - char *date; + const char *date; uint32_t expected; enum GNUNET_GenericReturnValue ret; } @@ -174,7 +174,7 @@ test_dates (void) { uint32_t d; enum GNUNET_GenericReturnValue ret; - char *date = test[t].date; + const char *date = test[t].date; if (NULL == test[t].date) { @@ -224,7 +224,7 @@ test_dates (void) } -enum GNUNET_GenericReturnValue +static enum GNUNET_GenericReturnValue test_lowest (void) { struct TALER_AgeMask mask = { @@ -270,7 +270,7 @@ test_lowest (void) } -enum GNUNET_GenericReturnValue +static enum GNUNET_GenericReturnValue test_adult (void) { struct { struct TALER_AgeMask mask; uint8_t expected; } @@ -304,7 +304,8 @@ static struct TALER_AgeMask age_mask = { .bits = 1 | 1 << 8 | 1 << 10 | 1 << 12 | 1 << 14 | 1 << 16 | 1 << 18 | 1 << 21 }; -enum GNUNET_GenericReturnValue + +static enum GNUNET_GenericReturnValue test_attestation (void) { uint8_t age; |