aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-04-03 07:42:06 +0200
committerChristian Grothoff <christian@grothoff.org>2021-04-03 07:42:06 +0200
commiteb75822ed7d1080b7997789b0ecc6c40a3ca6610 (patch)
tree946c25d4bc8aece71331e4049e378094edc59ad4
parentdbbfcbf2750ac11770f020306d110037ad6f5ed2 (diff)
downloadgnunet-eb75822ed7d1080b7997789b0ecc6c40a3ca6610.tar.gz
gnunet-eb75822ed7d1080b7997789b0ecc6c40a3ca6610.zip
fix ftbfs
-rw-r--r--src/setu/gnunet-service-setu_strata_estimator.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/setu/gnunet-service-setu_strata_estimator.c b/src/setu/gnunet-service-setu_strata_estimator.c
index 9ca1af0eb..7c9a4deb6 100644
--- a/src/setu/gnunet-service-setu_strata_estimator.c
+++ b/src/setu/gnunet-service-setu_strata_estimator.c
@@ -136,10 +136,11 @@ strata_estimator_insert (struct StrataEstimator *se,
136 struct IBF_Key key) 136 struct IBF_Key key)
137{ 137{
138 uint64_t v; 138 uint64_t v;
139 unsigned int i;
139 140
140 v = key.key_val; 141 v = key.key_val;
141 /* count trailing '1'-bits of v */ 142 /* count trailing '1'-bits of v */
142 for (unsigned int i = 0; v & 1; v >>= 1, i++) 143 for (i = 0; v & 1; v >>= 1, i++)
143 /* empty */; 144 /* empty */;
144 ibf_insert (se->strata[i], key); 145 ibf_insert (se->strata[i], key);
145} 146}
@@ -156,10 +157,11 @@ strata_estimator_remove (struct StrataEstimator *se,
156 struct IBF_Key key) 157 struct IBF_Key key)
157{ 158{
158 uint64_t v; 159 uint64_t v;
160 unsigned int i;
159 161
160 v = key.key_val; 162 v = key.key_val;
161 /* count trailing '1'-bits of v */ 163 /* count trailing '1'-bits of v */
162 for (unsigned int i = 0; v & 1; v >>= 1, i++) 164 for (i = 0; v & 1; v >>= 1, i++)
163 /* empty */; 165 /* empty */;
164 ibf_remove (se->strata[i], key); 166 ibf_remove (se->strata[i], key);
165} 167}