From: Christian Grothoff Date: Tue, 29 Sep 2009 19:36:50 +0000 (+0000) Subject: fix X-Git-Tag: initial-import-from-subversion-38251~23453 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=37acb875ba2259b0ed23092480c8fc39069d6679;p=oweals%2Fgnunet.git fix --- diff --git a/src/fs/gnunet-service-fs.c b/src/fs/gnunet-service-fs.c index 1bf7d4ca4..3264fdbc7 100644 --- a/src/fs/gnunet-service-fs.c +++ b/src/fs/gnunet-service-fs.c @@ -38,7 +38,7 @@ * - find out how to use core-pulling instead of pushing (at least for some cases) */ #include "platform.h" -#include +#include #include "gnunet_core_service.h" #include "gnunet_datastore_service.h" #include "gnunet_peer_lib.h" @@ -1825,11 +1825,11 @@ forward_request_task (void *cls, } /* (1) select target */ psc.pr = pr; - psc.target_score = MINDOUBLE; + psc.target_score = DBL_MIN; GNUNET_CONTAINER_multihashmap_iterate (connected_peers, &target_peer_select_cb, &psc); - if (psc.target_score == MINDOUBLE) + if (psc.target_score == DBL_MIN) { /* no possible target found, wait some time */ pr->task = GNUNET_SCHEDULER_add_delayed (sched,