[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r34559 - gnunet/src/rps
From: |
gnunet |
Subject: |
[GNUnet-SVN] r34559 - gnunet/src/rps |
Date: |
Sun, 14 Dec 2014 22:48:12 +0100 |
Author: ch3
Date: 2014-12-14 22:48:12 +0100 (Sun, 14 Dec 2014)
New Revision: 34559
Modified:
gnunet/src/rps/gnunet-service-rps.c
Log:
fixed error
Signed-off-by: Julius B?\195?\188nger <address@hidden>
Modified: gnunet/src/rps/gnunet-service-rps.c
===================================================================
--- gnunet/src/rps/gnunet-service-rps.c 2014-12-14 21:48:09 UTC (rev 34558)
+++ gnunet/src/rps/gnunet-service-rps.c 2014-12-14 21:48:12 UTC (rev 34559)
@@ -273,14 +273,15 @@
samplers = GNUNET_new(struct Samplers);
samplers->size = 0;
samplers->head = samplers->tail = NULL;
- samplers->peer_ids = GNUNET_new_array(init_size, struct GNUNET_PeerIdentity);
+ samplers->peer_ids = NULL;
+ //samplers->peer_ids = GNUNET_new_array(init_size, struct
GNUNET_PeerIdentity);
for ( i = 0 ; i < init_size ; i++ )
{
GNUNET_array_append(samplers->peer_ids,
samplers->size,
*own_identity);
- samplers->size++;
+ //samplers->size++;
s = SAMPLER_init(&samplers->peer_ids[i]);
GNUNET_CONTAINER_DLL_insert_tail(samplers->head,
samplers->tail,
@@ -828,7 +829,7 @@
/* Add the sending peer to the push_list */
GNUNET_array_append(push_list, push_list_size, *peer);
- push_list_size ++;
+ //push_list_size ++;
return GNUNET_OK;
}
@@ -913,7 +914,7 @@
peers = (struct GNUNET_PeerIdentity *) &msg[1];
for ( i = 0 ; i < GNUNET_ntohll(in_msg->num_peers) ; i++ ) {
GNUNET_array_append(pull_list, pull_list_size, peers[i]);
- pull_list_size++;
+ //pull_list_size++;
}
// TODO maybe a disconnect happens here
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r34559 - gnunet/src/rps,
gnunet <=