gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r13420 - gnunet/src/dv


From: gnunet
Subject: [GNUnet-SVN] r13420 - gnunet/src/dv
Date: Wed, 27 Oct 2010 11:41:28 +0200

Author: wachs
Date: 2010-10-27 11:41:28 +0200 (Wed, 27 Oct 2010)
New Revision: 13420

Modified:
   gnunet/src/dv/gnunet-service-dv.c
Log:
Refactoring gnunet time


Modified: gnunet/src/dv/gnunet-service-dv.c
===================================================================
--- gnunet/src/dv/gnunet-service-dv.c   2010-10-27 09:39:41 UTC (rev 13419)
+++ gnunet/src/dv/gnunet-service-dv.c   2010-10-27 09:41:28 UTC (rev 13420)
@@ -1505,7 +1505,7 @@
 #endif
 
 #if DELAY_FORWARDS
-  if (GNUNET_TIME_absolute_get_duration(pos->last_gossip).value < 
GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_SECONDS, 2).value)
+  if (GNUNET_TIME_absolute_get_duration(pos->last_gossip).abs_value < 
GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_SECONDS, 2).abs_value)
     {
       delayed_context = GNUNET_malloc(sizeof(struct DelayedMessageContext));
       memcpy(&delayed_context->dest, destination, sizeof(struct 
GNUNET_PeerIdentity));
@@ -1555,9 +1555,9 @@
  */
 int print_neighbors (void *cls,
                      const GNUNET_HashCode * key,
-                     void *value)
+                     void *abs_value)
 {
-  struct DistantNeighbor *distant_neighbor = value;
+  struct DistantNeighbor *distant_neighbor = abs_value;
   char my_shortname[5];
   char referrer_shortname[5];
   memcpy(&my_shortname, GNUNET_i2s(&my_identity), 4);
@@ -1732,10 +1732,10 @@
  */
 int send_iterator (void *cls,
                    const GNUNET_HashCode * key,
-                   void *value)
+                   void *abs_value)
 {
   struct DV_SendContext *send_context = cls;
-  struct DistantNeighbor *distant_neighbor = value;
+  struct DistantNeighbor *distant_neighbor = abs_value;
 
   if (memcmp(distant_neighbor->referrer, send_context->direct_peer, 
sizeof(struct GNUNET_PeerIdentity)) == 0) /* They match, send and free */
     {
@@ -2159,10 +2159,10 @@
  */
 static int add_pkey_to_extended (void *cls,
                                  const GNUNET_HashCode * key,
-                                 void *value)
+                                 void *abs_value)
 {
   struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded *pkey = cls;
-  struct DistantNeighbor *distant_neighbor = value;
+  struct DistantNeighbor *distant_neighbor = abs_value;
 
   if (distant_neighbor->pkey == NULL)
   {
@@ -2665,9 +2665,9 @@
  */
 static int gossip_all_to_all_iterator (void *cls,
                                       const GNUNET_HashCode * key,
-                                      void *value)
+                                      void *abs_value)
 {
-  struct DirectNeighbor *direct = value;
+  struct DirectNeighbor *direct = abs_value;
 
   GNUNET_CONTAINER_multihashmap_iterate (extended_neighbors, 
&add_all_extended_peers, direct->send_context);
 




reply via email to

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