aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgrothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96>2012-04-26 12:06:59 +0000
committergrothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96>2012-04-26 12:06:59 +0000
commitd148b672f2e0e84d9d49a952cf3f1205878e44bc (patch)
treee734c59ec8deae4268cb4cc5ddc1dc933f16edd9
parentda1e1d9f05b2cae268c1706f2055d01050d60fec (diff)
-disable histogram, check return values
git-svn-id: https://gnunet.org/svn/gnunet@21170 140774ce-b5e7-0310-ab8b-a85725594a96
-rw-r--r--src/nse/gnunet-service-nse.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nse/gnunet-service-nse.c b/src/nse/gnunet-service-nse.c
index a396cf9cbd..8aff436cb3 100644
--- a/src/nse/gnunet-service-nse.c
+++ b/src/nse/gnunet-service-nse.c
@@ -59,7 +59,7 @@
* production). The associated code should also probably be removed
* once we're done with experiments.
*/
-#define ENABLE_HISTOGRAM GNUNET_YES
+#define ENABLE_HISTOGRAM GNUNET_NO
/**
* Over how many values do we calculate the weighted average?
@@ -1022,7 +1022,7 @@ handle_p2p_size_estimate (void *cls, const struct GNUNET_PeerIdentity *peer,
#if ENABLE_HISTOGRAM
if (NULL != wh)
- GNUNET_BIO_write_int64 (wh, GNUNET_TIME_absolute_get ().abs_value);
+ GNUNET_break (GNUNET_OK == GNUNET_BIO_write_int64 (wh, GNUNET_TIME_absolute_get ().abs_value));
#endif
incoming_flood = (const struct GNUNET_NSE_FloodMessage *) message;
GNUNET_STATISTICS_update (stats, "# flood messages received", 1, GNUNET_NO);
@@ -1311,7 +1311,7 @@ shutdown_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
#if ENABLE_HISTOGRAM
if (wh != NULL)
{
- GNUNET_BIO_write_close (wh);
+ GNUNET_break (GNUNET_OK == GNUNET_BIO_write_close (wh));
wh = NULL;
}
#endif