gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnunet] branch master updated: indent


From: gnunet
Subject: [gnunet] branch master updated: indent
Date: Sat, 03 Apr 2021 07:42:12 +0200

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new dbbfcbf27 indent
dbbfcbf27 is described below

commit dbbfcbf2750ac11770f020306d110037ad6f5ed2
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sat Apr 3 07:40:23 2021 +0200

    indent
---
 src/setu/gnunet-service-setu_strata_estimator.c | 14 ++++++++++----
 1 file 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));

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]