diff options
Diffstat (limited to 'src/mesh/gnunet-service-mesh.c')
-rw-r--r-- | src/mesh/gnunet-service-mesh.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/mesh/gnunet-service-mesh.c b/src/mesh/gnunet-service-mesh.c index 9f1b7b491..3b704f101 100644 --- a/src/mesh/gnunet-service-mesh.c +++ b/src/mesh/gnunet-service-mesh.c | |||
@@ -474,18 +474,18 @@ struct MeshClient | |||
474 | /** | 474 | /** |
475 | * GNUNET_SCHEDULER_Task for printing a message after some operation is done | 475 | * GNUNET_SCHEDULER_Task for printing a message after some operation is done |
476 | * @param cls string to print | 476 | * @param cls string to print |
477 | * @param tc task context | 477 | * @param success GNUNET_OK if the PUT was transmitted, |
478 | * GNUNET_NO on timeout, | ||
479 | * GNUNET_SYSERR on disconnect from service | ||
480 | * after the PUT message was transmitted | ||
481 | * (so we don't know if it was received or not) | ||
478 | */ | 482 | */ |
479 | static void | 483 | static void |
480 | mesh_debug (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 484 | mesh_debug (void *cls, int success) |
481 | { | 485 | { |
482 | char *s = cls; | 486 | char *s = cls; |
483 | 487 | ||
484 | if (NULL != tc && GNUNET_SCHEDULER_REASON_SHUTDOWN == tc->reason) | 488 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "%s (%d)\n", s, success); |
485 | { | ||
486 | return; | ||
487 | } | ||
488 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "%s\n", s); | ||
489 | } | 489 | } |
490 | #endif | 490 | #endif |
491 | 491 | ||
@@ -622,6 +622,7 @@ static int | |||
622 | announce_application (void *cls, const GNUNET_HashCode * key, void *value) | 622 | announce_application (void *cls, const GNUNET_HashCode * key, void *value) |
623 | { | 623 | { |
624 | /* FIXME are hashes in multihash map equal on all aquitectures? */ | 624 | /* FIXME are hashes in multihash map equal on all aquitectures? */ |
625 | /* FIXME: keep return value of 'put' to possibly cancel!? */ | ||
625 | GNUNET_DHT_put (dht_handle, key, 10U, | 626 | GNUNET_DHT_put (dht_handle, key, 10U, |
626 | GNUNET_DHT_RO_RECORD_ROUTE | | 627 | GNUNET_DHT_RO_RECORD_ROUTE | |
627 | GNUNET_DHT_RO_DEMULTIPLEX_EVERYWHERE, GNUNET_BLOCK_TYPE_TEST, | 628 | GNUNET_DHT_RO_DEMULTIPLEX_EVERYWHERE, GNUNET_BLOCK_TYPE_TEST, |