[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r8134 - GNUnet/src/applications/dv/module
From: |
gnunet |
Subject: |
[GNUnet-SVN] r8134 - GNUnet/src/applications/dv/module |
Date: |
Tue, 20 Jan 2009 13:29:57 -0700 (MST) |
Author: nevans
Date: 2009-01-20 13:29:57 -0700 (Tue, 20 Jan 2009)
New Revision: 8134
Modified:
GNUnet/src/applications/dv/module/dv.c
Log:
Modified: GNUnet/src/applications/dv/module/dv.c
===================================================================
--- GNUnet/src/applications/dv/module/dv.c 2009-01-20 20:27:11 UTC (rev
8133)
+++ GNUnet/src/applications/dv/module/dv.c 2009-01-20 20:29:57 UTC (rev
8134)
@@ -185,8 +185,10 @@
GNUNET_multi_hash_map_get (ctx->extended_neighbors,
&peer->hashPubKey);
- if ((neighbor->cost != cost) && ((neighbor->referrer == NULL) &&
(referrer == NULL)) || (((neighbor->referrer != NULL) && (referrer != NULL)) &&
(memcmp (neighbor->referrer, referrer, sizeof (GNUNET_PeerIdentity))
- == 0)))
+ if ( (neighbor->cost != cost) &&
+ (((neighbor->referrer == NULL) && (referrer == NULL)) ||
+ (((neighbor->referrer != NULL) && (referrer != NULL)) &&
(memcmp (neighbor->referrer, referrer, sizeof (GNUNET_PeerIdentity))
+ == 0))))
{
neighbor->cost = cost;
GNUNET_DV_Heap_updatedCost
(&ctx->neighbor_max_heap, neighbor);
@@ -221,7 +223,6 @@
}
}
- }
#ifdef DEBUG_DV
print_tables ();
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r8134 - GNUnet/src/applications/dv/module,
gnunet <=