aboutsummaryrefslogtreecommitdiff
path: root/src/util/peer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/peer.c')
-rw-r--r--src/util/peer.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/util/peer.c b/src/util/peer.c
index 91a706040..62fa0e2f2 100644
--- a/src/util/peer.c
+++ b/src/util/peer.c
@@ -148,8 +148,7 @@ GNUNET_PEER_intern (const struct GNUNET_PeerIdentity *pid)
148 table[ret].rc = 1; 148 table[ret].rc = 1;
149 table[ret].pid = ret; 149 table[ret].pid = ret;
150 GNUNET_break (GNUNET_OK == 150 GNUNET_break (GNUNET_OK ==
151 GNUNET_CONTAINER_multihashmap_put (map, 151 GNUNET_CONTAINER_multihashmap_put (map, &pid->hashPubKey,
152 &pid->hashPubKey,
153 (void *) (long) ret, 152 (void *) (long) ret,
154 GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_ONLY)); 153 GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_ONLY));
155 return ret; 154 return ret;
@@ -182,8 +181,8 @@ GNUNET_PEER_decrement_rcs (const GNUNET_PEER_Id *ids, unsigned int count)
182 { 181 {
183 GNUNET_break (GNUNET_OK == 182 GNUNET_break (GNUNET_OK ==
184 GNUNET_CONTAINER_multihashmap_remove (map, 183 GNUNET_CONTAINER_multihashmap_remove (map,
185 &table[id]. 184 &table[id].id.
186 id.hashPubKey, 185 hashPubKey,
187 (void *) (long) id)); 186 (void *) (long) id));
188 table[id].pid = free_list_start; 187 table[id].pid = free_list_start;
189 free_list_start = id; 188 free_list_start = id;
@@ -211,8 +210,8 @@ GNUNET_PEER_change_rc (GNUNET_PEER_Id id, int delta)
211 { 210 {
212 GNUNET_break (GNUNET_OK == 211 GNUNET_break (GNUNET_OK ==
213 GNUNET_CONTAINER_multihashmap_remove (map, 212 GNUNET_CONTAINER_multihashmap_remove (map,
214 &table[id]. 213 &table[id].id.
215 id.hashPubKey, 214 hashPubKey,
216 (void *) (long) id)); 215 (void *) (long) id));
217 table[id].pid = free_list_start; 216 table[id].pid = free_list_start;
218 free_list_start = id; 217 free_list_start = id;