[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r16807 - gnunet/src/dht
From: |
gnunet |
Subject: |
[GNUnet-SVN] r16807 - gnunet/src/dht |
Date: |
Tue, 13 Sep 2011 14:25:52 +0200 |
Author: grothoff
Date: 2011-09-13 14:25:52 +0200 (Tue, 13 Sep 2011)
New Revision: 16807
Modified:
gnunet/src/dht/gnunet-service-dht.c
Log:
stuff
Modified: gnunet/src/dht/gnunet-service-dht.c
===================================================================
--- gnunet/src/dht/gnunet-service-dht.c 2011-09-13 12:24:09 UTC (rev 16806)
+++ gnunet/src/dht/gnunet-service-dht.c 2011-09-13 12:25:52 UTC (rev 16807)
@@ -913,6 +913,7 @@
}
}
+
/**
* Find the maximum send time of the recently sent values.
*
@@ -940,24 +941,25 @@
return max_time;
}
+
static void
increment_stats (const char *value)
{
- if (stats != NULL)
- {
- GNUNET_STATISTICS_update (stats, value, 1, GNUNET_NO);
- }
+ if (stats == NULL)
+ return;
+ GNUNET_STATISTICS_update (stats, value, 1, GNUNET_NO);
}
+
static void
decrement_stats (const char *value)
{
- if (stats != NULL)
- {
- GNUNET_STATISTICS_update (stats, value, -1, GNUNET_NO);
- }
+ if (stats == NULL)
+ return;
+ GNUNET_STATISTICS_update (stats, value, -1, GNUNET_NO);
}
+
/**
* Try to send another message from our core send list
*/
@@ -999,6 +1001,7 @@
}
}
+
/**
* Function called to send a request out to another peer.
* Called both for locally initiated requests and those
@@ -1218,6 +1221,7 @@
return msb | lsb;
}
+
/**
* Return a number that is larger the closer the
* "have" GNUNET_hash code is to the "target".
@@ -2338,6 +2342,7 @@
return results;
}
+
static void
remove_recent_find_peer (void *cls,
const struct GNUNET_SCHEDULER_TaskContext *tc)
@@ -2350,6 +2355,7 @@
GNUNET_free (key);
}
+
/**
* Server handler for initiating local dht find peer requests
*
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r16807 - gnunet/src/dht,
gnunet <=