[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r8915 - GNUnet/src/applications/dv_dht/module
From: |
gnunet |
Subject: |
[GNUnet-SVN] r8915 - GNUnet/src/applications/dv_dht/module |
Date: |
Mon, 31 Aug 2009 16:00:07 -0600 |
Author: nevans
Date: 2009-08-31 16:00:07 -0600 (Mon, 31 Aug 2009)
New Revision: 8915
Modified:
GNUnet/src/applications/dv_dht/module/routing.c
GNUnet/src/applications/dv_dht/module/table.c
Log:
dead code removal
Modified: GNUnet/src/applications/dv_dht/module/routing.c
===================================================================
--- GNUnet/src/applications/dv_dht/module/routing.c 2009-08-31 21:59:26 UTC
(rev 8914)
+++ GNUnet/src/applications/dv_dht/module/routing.c 2009-08-31 22:00:07 UTC
(rev 8915)
@@ -1301,11 +1301,8 @@
void *cls)
{
struct DV_DHT_Source_Route *pos;
- int done;
unsigned int records_removed;
DV_DHTQueryRecord *q;
-
- done = GNUNET_NO;
GNUNET_mutex_lock (lock);
records_removed = 0;
while (GNUNET_YES ==
@@ -1333,8 +1330,7 @@
GNUNET_GE_BULK, "Removed %u total records\n",
records_removed);
#endif
- if (done != GNUNET_YES)
- return GNUNET_SYSERR;
+
return GNUNET_OK;
}
Modified: GNUnet/src/applications/dv_dht/module/table.c
===================================================================
--- GNUnet/src/applications/dv_dht/module/table.c 2009-08-31 21:59:26 UTC
(rev 8914)
+++ GNUnet/src/applications/dv_dht/module/table.c 2009-08-31 22:00:07 UTC
(rev 8915)
@@ -969,8 +969,7 @@
GNUNET_GE_BULK,
"core_slots_count returns %d, using %d buckets\n",
coreAPI->core_slots_count (), i);
- if (i < 4)
- i = 4;
+
GNUNET_array_grow (buckets, bucketCount, i);
/* I think this is wrong. First, we have just increased the
* number of buckets to i, but then we iterate only over whatever
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r8915 - GNUnet/src/applications/dv_dht/module,
gnunet <=