From: Bart Polot Date: Wed, 7 Dec 2011 17:45:07 +0000 (+0000) Subject: - revert 18495 X-Git-Tag: initial-import-from-subversion-38251~15699 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ac19bc1a1274309192b4fde2d5dcc10a4714509f;p=oweals%2Fgnunet.git - revert 18495 --- diff --git a/src/nse/nse_api.c b/src/nse/nse_api.c index ea1aae9e4..db5e9d117 100644 --- a/src/nse/nse_api.c +++ b/src/nse/nse_api.c @@ -102,7 +102,6 @@ message_handler (void *cls, const struct GNUNET_MessageHeader *msg) { struct GNUNET_NSE_Handle *h = cls; const struct GNUNET_NSE_ClientMessage *client_msg; - double std_dev; if (msg == NULL) { @@ -120,12 +119,8 @@ message_handler (void *cls, const struct GNUNET_MessageHeader *msg) return; } client_msg = (const struct GNUNET_NSE_ClientMessage *) msg; - if (isnormal (client_msg->std_deviation)) - std_dev = client_msg->std_deviation; - else - std_dev = 0.0; h->recv_cb (h->recv_cb_cls, GNUNET_TIME_absolute_ntoh (client_msg->timestamp), - client_msg->size_estimate, std_dev); + client_msg->size_estimate, client_msg->std_deviation); GNUNET_CLIENT_receive (h->client, &message_handler, h, GNUNET_TIME_UNIT_FOREVER_REL); }