[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r35364 - in gnunet/src: ats fragmentation rps transport
From: |
gnunet |
Subject: |
[GNUnet-SVN] r35364 - in gnunet/src: ats fragmentation rps transport |
Date: |
Mon, 9 Mar 2015 09:24:58 +0100 |
Author: grothoff
Date: 2015-03-09 09:24:58 +0100 (Mon, 09 Mar 2015)
New Revision: 35364
Modified:
gnunet/src/ats/gnunet-service-ats_addresses.c
gnunet/src/fragmentation/fragmentation.c
gnunet/src/rps/gnunet-service-rps_sampler.c
gnunet/src/transport/gnunet-service-transport_neighbours.c
Log:
-doxygen and stylistic fixes
Modified: gnunet/src/ats/gnunet-service-ats_addresses.c
===================================================================
--- gnunet/src/ats/gnunet-service-ats_addresses.c 2015-03-08 19:11:46 UTC
(rev 35363)
+++ gnunet/src/ats/gnunet-service-ats_addresses.c 2015-03-09 08:24:58 UTC
(rev 35364)
@@ -37,6 +37,7 @@
struct GNUNET_CONTAINER_MultiPeerMap *GSA_addresses;
+
/**
* Update statistic on number of addresses.
*/
Modified: gnunet/src/fragmentation/fragmentation.c
===================================================================
--- gnunet/src/fragmentation/fragmentation.c 2015-03-08 19:11:46 UTC (rev
35363)
+++ gnunet/src/fragmentation/fragmentation.c 2015-03-09 08:24:58 UTC (rev
35364)
@@ -90,7 +90,7 @@
uint64_t acks;
/**
- * Bitfield with all possible bits for 'acks' (used to mask the
+ * Bitfield with all possible bits for @e acks (used to mask the
* ack we get back).
*/
uint64_t acks_mask;
@@ -121,7 +121,7 @@
unsigned int num_transmissions;
/**
- * #GNUNET_YES if we called @e proc and are now waiting for
#GNUNET_FRAGMENT_transmission_done()
+ * #GNUNET_YES if we called @e proc and are now waiting for
#GNUNET_FRAGMENT_context_transmission_done()
*/
int8_t proc_busy;
Modified: gnunet/src/rps/gnunet-service-rps_sampler.c
===================================================================
--- gnunet/src/rps/gnunet-service-rps_sampler.c 2015-03-08 19:11:46 UTC (rev
35363)
+++ gnunet/src/rps/gnunet-service-rps_sampler.c 2015-03-09 08:24:58 UTC (rev
35364)
@@ -171,12 +171,18 @@
const struct GNUNET_PeerIdentity *id);
/**
- * Closure to #RPS_sampler_get_rand_peer()
+ * Closure for #sampler_get_rand_peer()
*/
struct GetPeerCls
{
- /** DLL */
+ /**
+ * DLL
+ */
struct GetPeerCls *next;
+
+ /**
+ * DLL
+ */
struct GetPeerCls *prev;
/**
@@ -195,7 +201,7 @@
RPS_sampler_rand_peer_ready_cont cont;
/**
- * The closure to the callback
+ * The closure to the callback @e cont
*/
void *cont_cls;
@@ -234,8 +240,8 @@
/** FIXME document */
-struct GetPeerCls *gpc_head;
-struct GetPeerCls *gpc_tail;
+static struct GetPeerCls *gpc_head;
+static struct GetPeerCls *gpc_tail;
/**
@@ -244,14 +250,12 @@
* Checks whether all n peers are available. If they are,
* give those back.
*/
- void
+static void
check_n_peers_ready (void *cls,
const struct GNUNET_PeerIdentity *id)
{
- struct NRandPeersReadyCls *n_peers_cls;
+ struct NRandPeersReadyCls *n_peers_cls = cls;
- n_peers_cls = (struct NRandPeersReadyCls *) cls;
-
n_peers_cls->cur_num_peers++;
LOG (GNUNET_ERROR_TYPE_DEBUG,
"Got %" PRIX32 ". of %" PRIX32 " peers\n",
@@ -320,7 +324,7 @@
* Input an PeerID into the given sampler element.
*
* @param sampler the sampler the @a s_elem belongs to.
- * Needed to know the
+ * Needed to know the
*/
static void
RPS_sampler_elem_next (struct RPS_SamplerElement *s_elem,
@@ -562,7 +566,7 @@
static void
sampler_get_rand_peer2 (void *cls, const struct GNUNET_SCHEDULER_TaskContext
*tc)
{
- struct GetPeerCls *gpc = (struct GetPeerCls *) cls;
+ struct GetPeerCls *gpc = cls;
uint32_t r_index;
gpc->get_peer_task = NULL;
@@ -603,7 +607,7 @@
static void
sampler_get_rand_peer (void *cls, const struct GNUNET_SCHEDULER_TaskContext
*tc)
{
- struct GetPeerCls *gpc = (struct GetPeerCls *) cls;
+ struct GetPeerCls *gpc = cls;
struct GNUNET_PeerIdentity tmp_id;
unsigned int empty_flag;
struct RPS_SamplerElement *s_elem;
Modified: gnunet/src/transport/gnunet-service-transport_neighbours.c
===================================================================
--- gnunet/src/transport/gnunet-service-transport_neighbours.c 2015-03-08
19:11:46 UTC (rev 35363)
+++ gnunet/src/transport/gnunet-service-transport_neighbours.c 2015-03-09
08:24:58 UTC (rev 35364)
@@ -391,7 +391,7 @@
/**
* Time where we should cut the connection (timeout) if we don't
* make progress in the state machine (or get a KEEPALIVE_RESPONSE
- * if we are in #S_CONNECTED).
+ * if we are in #GNUNET_TRANSPORT_PS_CONNECTED).
*/
struct GNUNET_TIME_Absolute timeout;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r35364 - in gnunet/src: ats fragmentation rps transport,
gnunet <=