aboutsummaryrefslogtreecommitdiff
path: root/src/dv/dv_api.c
diff options
context:
space:
mode:
authorNathan S. Evans <evans@in.tum.de>2010-05-12 15:51:49 +0000
committerNathan S. Evans <evans@in.tum.de>2010-05-12 15:51:49 +0000
commitbaaedd4fdfb10fc28d9923be9e1d28663d621eca (patch)
treed15f6e3cbcb4b833c54e57e9d80b70210a8bc932 /src/dv/dv_api.c
parent6d6c4ed2d4dc7b598715cfceb73e3fa84a6b4426 (diff)
downloadgnunet-baaedd4fdfb10fc28d9923be9e1d28663d621eca.tar.gz
gnunet-baaedd4fdfb10fc28d9923be9e1d28663d621eca.zip
moving closer towards a working dv implementation
Diffstat (limited to 'src/dv/dv_api.c')
-rw-r--r--src/dv/dv_api.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/dv/dv_api.c b/src/dv/dv_api.c
index 28bd0dcac..b7337d45c 100644
--- a/src/dv/dv_api.c
+++ b/src/dv/dv_api.c
@@ -345,6 +345,10 @@ void handle_message_receipt (void *cls,
345 GNUNET_HashCode uidhash; 345 GNUNET_HashCode uidhash;
346 struct SendCallbackContext *send_ctx; 346 struct SendCallbackContext *send_ctx;
347 347
348#if DEBUG_DV
349 GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, "dv api receives message!\n");
350#endif
351
348 if (msg == NULL) 352 if (msg == NULL)
349 { 353 {
350 return; /* Connection closed? */ 354 return; /* Connection closed? */
@@ -474,8 +478,7 @@ int GNUNET_DV_send (struct GNUNET_DV_Handle *dv_handle,
474 send_ctx = GNUNET_malloc(sizeof(struct SendCallbackContext)); 478 send_ctx = GNUNET_malloc(sizeof(struct SendCallbackContext));
475 479
476 send_ctx->cont = cont; 480 send_ctx->cont = cont;
477 if (cont == NULL) 481
478 fprintf(stderr, "DV_SEND called with null continuation!\n");
479 send_ctx->cont_cls = cont_cls; 482 send_ctx->cont_cls = cont_cls;
480 memcpy(&send_ctx->target, target, sizeof(struct GNUNET_PeerIdentity)); 483 memcpy(&send_ctx->target, target, sizeof(struct GNUNET_PeerIdentity));
481 484