gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r35868 - gnunet/src/rps


From: gnunet
Subject: [GNUnet-SVN] r35868 - gnunet/src/rps
Date: Sat, 6 Jun 2015 01:03:02 +0200

Author: ch3
Date: 2015-06-06 01:03:02 +0200 (Sat, 06 Jun 2015)
New Revision: 35868

Modified:
   gnunet/src/rps/gnunet-service-rps_sampler.c
Log:
-fixed naming

Modified: gnunet/src/rps/gnunet-service-rps_sampler.c
===================================================================
--- gnunet/src/rps/gnunet-service-rps_sampler.c 2015-06-05 23:02:59 UTC (rev 
35867)
+++ gnunet/src/rps/gnunet-service-rps_sampler.c 2015-06-05 23:03:02 UTC (rev 
35868)
@@ -123,7 +123,7 @@
 
 
 /**
- * Closure for #sampler_get_rand_peer()
+ * Closure for #sampler_mod_get_rand_peer() and #sampler_get_rand_peer
  */
 struct GetPeerCls
 {
@@ -180,7 +180,7 @@
  * Only used internally
  */
 static void
-sampler_get_rand_peer2 (void *cls,
+sampler_get_rand_peer (void *cls,
                         const struct GNUNET_SCHEDULER_TaskContext *tc);
 
 /**
@@ -190,7 +190,7 @@
  * corrsponding peer to the client.
  */
 static void
-sampler_get_rand_peer (void *cls,
+sampler_mod_get_rand_peer (void *cls,
                        const struct GNUNET_SCHEDULER_TaskContext *tc);
 
 
@@ -734,7 +734,7 @@
   struct RPS_Sampler *sampler;
 
   sampler = RPS_sampler_init (init_size, max_round_interval);
-  sampler->get_peers = sampler_get_rand_peer2;
+  sampler->get_peers = sampler_mod_get_rand_peer;
 
   #ifdef TO_FILE
   LOG (GNUNET_ERROR_TYPE_DEBUG,
@@ -808,7 +808,7 @@
  * Only used internally
  */
 static void
-sampler_get_rand_peer2 (void *cls,
+sampler_get_rand_peer (void *cls,
                         const struct GNUNET_SCHEDULER_TaskContext *tc)
 {
   struct GetPeerCls *gpc = cls;
@@ -833,7 +833,7 @@
     gpc->get_peer_task =
       GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_relative_multiply (
                                         GNUNET_TIME_UNIT_SECONDS, 0.1),
-                                    &sampler_get_rand_peer2,
+                                    &sampler_get_rand_peer,
                                     cls);
     return;
   }
@@ -857,7 +857,7 @@
  * corrsponding peer to the client.
  */
 static void
-sampler_get_rand_peer (void *cls,
+sampler_mod_get_rand_peer (void *cls,
                        const struct GNUNET_SCHEDULER_TaskContext *tc)
 {
   struct GetPeerCls *gpc = cls;
@@ -893,7 +893,7 @@
       GNUNET_assert (NULL == gpc->get_peer_task);
       gpc->get_peer_task =
         GNUNET_SCHEDULER_add_delayed (gpc->sampler->max_round_interval,
-                                      &sampler_get_rand_peer,
+                                      &sampler_mod_get_rand_peer,
                                       cls);
       return;
     }
@@ -940,7 +940,7 @@
       GNUNET_assert (NULL == gpc->get_peer_task);
       gpc->get_peer_task =
         GNUNET_SCHEDULER_add_delayed (gpc->sampler->max_round_interval,
-                                      &sampler_get_rand_peer,
+                                      &sampler_mod_get_rand_peer,
                                       cls);
       return;
     }




reply via email to

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