[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] branch master updated: -fix bad indent
From: |
gnunet |
Subject: |
[gnunet] branch master updated: -fix bad indent |
Date: |
Sat, 29 Aug 2020 23:52:01 +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 83f3b73bd -fix bad indent
83f3b73bd is described below
commit 83f3b73bd59bca3025eb5999d29ee8a254d6472a
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sat Aug 29 23:45:37 2020 +0200
-fix bad indent
---
src/consensus/gnunet-service-consensus.c | 23 ++++++++++++-----------
1 file changed, 12 insertions(+), 11 deletions(-)
diff --git a/src/consensus/gnunet-service-consensus.c
b/src/consensus/gnunet-service-consensus.c
index 587e3685f..371b7f67f 100644
--- a/src/consensus/gnunet-service-consensus.c
+++ b/src/consensus/gnunet-service-consensus.c
@@ -1244,8 +1244,8 @@ struct Evilness
static int
-parse_evilness_cram_subtype (const char *evil_subtype_str, struct
- Evilness *evil)
+parse_evilness_cram_subtype (const char *evil_subtype_str,
+ struct Evilness *evil)
{
if (0 == strcmp ("replace", evil_subtype_str))
{
@@ -2245,11 +2245,8 @@ task_start_reconcile (struct TaskEntry *task)
"P%u: Looking up set {%s} to run remote union\n",
session->local_peer_idx,
debug_str_set_key (&setop->input_set));
-
rcm.header.type = htons (GNUNET_MESSAGE_TYPE_CONSENSUS_P2P_ROUND_CONTEXT);
- rcm.header.size = htons (sizeof(struct
- GNUNET_CONSENSUS_RoundContextMessage));
-
+ rcm.header.size = htons (sizeof(rcm));
rcm.kind = htons (task->key.kind);
rcm.peer1 = htons (task->key.peer1);
rcm.peer2 = htons (task->key.peer2);
@@ -2260,8 +2257,9 @@ task_start_reconcile (struct TaskEntry *task)
GNUNET_assert (NULL == setop->op);
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"P%u: initiating set op with P%u, our set is %s\n",
- session->local_peer_idx, task->key.peer2, debug_str_set_key (
- &setop->input_set));
+ session->local_peer_idx,
+ task->key.peer2,
+ debug_str_set_key (&setop->input_set));
struct GNUNET_SET_Option opts[] = {
{ GNUNET_SET_OPTION_BYZANTINE, { .num = session->lower_bound } },
@@ -2744,7 +2742,6 @@ put_task (struct GNUNET_CONTAINER_MultiHashMap *taskmap,
struct Step *s;
GNUNET_assert (NULL != t->step);
-
t = GNUNET_memdup (t, sizeof(struct TaskEntry));
s = t->step;
if (s->tasks_len == s->tasks_cap)
@@ -2765,9 +2762,13 @@ put_task (struct GNUNET_CONTAINER_MultiHashMap *taskmap,
s->tasks[s->tasks_len] = t;
s->tasks_len++;
- GNUNET_CRYPTO_hash (&t->key, sizeof(struct TaskKey), &round_hash);
+ GNUNET_CRYPTO_hash (&t->key,
+ sizeof(struct TaskKey),
+ &round_hash);
GNUNET_assert (GNUNET_OK ==
- GNUNET_CONTAINER_multihashmap_put (taskmap, &round_hash, t,
+ GNUNET_CONTAINER_multihashmap_put (taskmap,
+ &round_hash,
+ t,
GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_ONLY));
}
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [gnunet] branch master updated: -fix bad indent,
gnunet <=