From: Nathan S. Evans Date: Thu, 7 Oct 2010 08:25:44 +0000 (+0000) Subject: typo, continuations for dht operations use continuation instead of being default... X-Git-Tag: initial-import-from-subversion-38251~20143 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=852435ae4a803dd40b5975199c30d2819bef600c;p=oweals%2Fgnunet.git typo, continuations for dht operations use continuation instead of being default scheduled (GNUNET_SCHEDULER_REASON_TIMEOUT indicates error) --- diff --git a/src/dht/dht_api.c b/src/dht/dht_api.c index d7c05684c..561aa0a77 100644 --- a/src/dht/dht_api.c +++ b/src/dht/dht_api.c @@ -365,9 +365,10 @@ transmit_pending (void *cls, } if (NULL != head->cont) { - GNUNET_SCHEDULER_add_now (handle->sched, - head->cont, - head->cont_cls); + GNUNET_SCHEDULER_add_continuation (handle->sched, + head->cont, + head->cont_cls, + GNUNET_SCHEDULER_REASON_PREREQ_DONE); head->cont = NULL; head->cont_cls = NULL; } @@ -602,7 +603,7 @@ GNUNET_DHT_disconnect (struct GNUNET_DHT_Handle *handle) -/* ***** Special low-level API providing generic routeing abstraction ***** */ +/* ***** Special low-level API providing generic routing abstraction ***** */ /** diff --git a/src/dht/gnunet-service-dht.c b/src/dht/gnunet-service-dht.c index d216be67d..403f0dfcc 100644 --- a/src/dht/gnunet-service-dht.c +++ b/src/dht/gnunet-service-dht.c @@ -2702,7 +2702,7 @@ handle_dht_put (void *cls, * at each hop we expect to get one bit closer, and * we have one bit per bucket, the number of buckets * in use should be the largest number of hops for - * a sucessful message. (of course, this assumes we + * a successful message. (of course, this assumes we * know all peers in the network!) * * @return ballpark diameter figure