summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-04-03 07:40:23 +0200
committerChristian Grothoff <christian@grothoff.org>2021-04-03 07:40:23 +0200
commitdbbfcbf2750ac11770f020306d110037ad6f5ed2 (patch)
tree252d63b66d8980c6f8c8e85f227d0464e69da838
parent3741f8b677aef80dffdfbc8c142be1ece4494012 (diff)
indent
-rw-r--r--src/setu/gnunet-service-setu_strata_estimator.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/setu/gnunet-service-setu_strata_estimator.c b/src/setu/gnunet-service-setu_strata_estimator.c
index 32898f482..9ca1af0eb 100644
--- a/src/setu/gnunet-service-setu_strata_estimator.c
+++ b/src/setu/gnunet-service-setu_strata_estimator.c
@@ -62,7 +62,9 @@ strata_estimator_write (const struct StrataEstimator *se,
&cbuf,
&nsize))
{
- GNUNET_memcpy (buf, cbuf, nsize);
+ GNUNET_memcpy (buf,
+ cbuf,
+ nsize);
osize = nsize;
GNUNET_free (cbuf);
}
@@ -224,19 +226,23 @@ strata_estimator_difference (const struct StrataEstimator *se1,
/* FIXME: implement this without always allocating new IBFs */
diff = ibf_dup (se1->strata[i]);
- ibf_subtract (diff, se2->strata[i]);
+ ibf_subtract (diff,
+ se2->strata[i]);
for (int ibf_count = 0; GNUNET_YES; ibf_count++)
{
int more;
- more = ibf_decode (diff, NULL, NULL);
+ more = ibf_decode (diff,
+ NULL,
+ NULL);
if (GNUNET_NO == more)
{
count += ibf_count;
break;
}
/* Estimate if decoding fails or would not terminate */
- if ((GNUNET_SYSERR == more) || (ibf_count > diff->size))
+ if ( (GNUNET_SYSERR == more) ||
+ (ibf_count > diff->size) )
{
ibf_destroy (diff);
return count * (1 << (i + 1));