diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-01-02 22:13:04 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-01-02 22:13:04 +0100 |
commit | c786785d54ee258209c7059ef25877e8c2aae159 (patch) | |
tree | 9571d58c7a16e92fd48573c544de8f714d6356e6 /src/revocation/revocation_api.c | |
parent | e272dddaa9020f43c2cc58d8c318890bb9fe10c4 (diff) | |
download | gnunet-c786785d54ee258209c7059ef25877e8c2aae159.tar.gz gnunet-c786785d54ee258209c7059ef25877e8c2aae159.zip |
-FTBFS
Diffstat (limited to 'src/revocation/revocation_api.c')
-rw-r--r-- | src/revocation/revocation_api.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/revocation/revocation_api.c b/src/revocation/revocation_api.c index 1032b98f7..d5bd53e56 100644 --- a/src/revocation/revocation_api.c +++ b/src/revocation/revocation_api.c | |||
@@ -53,7 +53,7 @@ struct GNUNET_REVOCATION_Query | |||
53 | 53 | ||
54 | /** | 54 | /** |
55 | * Helper struct that holds a found pow nonce | 55 | * Helper struct that holds a found pow nonce |
56 | * and the corresponding number of leading zeroes. | 56 | * and the corresponding number of leading zeros. |
57 | */ | 57 | */ |
58 | struct BestPow | 58 | struct BestPow |
59 | { | 59 | { |
@@ -392,7 +392,7 @@ GNUNET_REVOCATION_revoke_cancel (struct GNUNET_REVOCATION_Handle *h) | |||
392 | * Calculate the average zeros in the pows. | 392 | * Calculate the average zeros in the pows. |
393 | * | 393 | * |
394 | * @param ph the PowHandle | 394 | * @param ph the PowHandle |
395 | * @return the average number of zeroes. | 395 | * @return the average number of zeros. |
396 | */ | 396 | */ |
397 | static unsigned int | 397 | static unsigned int |
398 | calculate_score (const struct GNUNET_REVOCATION_PowCalculationHandle *ph) | 398 | calculate_score (const struct GNUNET_REVOCATION_PowCalculationHandle *ph) |
@@ -518,7 +518,7 @@ GNUNET_REVOCATION_check_pow (const struct GNUNET_REVOCATION_PowP *pow, | |||
518 | buf, | 518 | buf, |
519 | sizeof(buf), | 519 | sizeof(buf), |
520 | &result); | 520 | &result); |
521 | tmp_score = GNUNET_CRYPTO_hash_count_leading_zeroes (&result); | 521 | tmp_score = GNUNET_CRYPTO_hash_count_leading_zeros (&result); |
522 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 522 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
523 | "Score %u with %" PRIu64 " (#%u)\n", | 523 | "Score %u with %" PRIu64 " (#%u)\n", |
524 | tmp_score, pow_val, i); | 524 | tmp_score, pow_val, i); |
@@ -715,7 +715,7 @@ GNUNET_REVOCATION_pow_round (struct GNUNET_REVOCATION_PowCalculationHandle *pc) | |||
715 | buf, | 715 | buf, |
716 | sizeof(buf), | 716 | sizeof(buf), |
717 | &result); | 717 | &result); |
718 | zeros = count_leading_zeroes (&result); | 718 | zeros = GNUNET_CRYPTO_hash_count_leading_zeros (&result); |
719 | for (unsigned int i = 0; i < POW_COUNT; i++) | 719 | for (unsigned int i = 0; i < POW_COUNT; i++) |
720 | { | 720 | { |
721 | if (pc->best[i].bits < zeros) | 721 | if (pc->best[i].bits < zeros) |