aboutsummaryrefslogtreecommitdiff
path: root/src/transport/transport_api.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-05-31 07:55:27 +0000
committerChristian Grothoff <christian@grothoff.org>2010-05-31 07:55:27 +0000
commit4a8b0022e6235b9912d02a8e92c020bea1ac1798 (patch)
treea5c5dbaee05c86af33404c9e113c1ff731565084 /src/transport/transport_api.c
parent9c94d4241e499cedfb7696f18793dba8c722e26b (diff)
downloadgnunet-4a8b0022e6235b9912d02a8e92c020bea1ac1798.tar.gz
gnunet-4a8b0022e6235b9912d02a8e92c020bea1ac1798.zip
testcase
Diffstat (limited to 'src/transport/transport_api.c')
-rw-r--r--src/transport/transport_api.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/transport/transport_api.c b/src/transport/transport_api.c
index 578400cdc..22f6eee51 100644
--- a/src/transport/transport_api.c
+++ b/src/transport/transport_api.c
@@ -546,8 +546,12 @@ transport_notify_ready (void *cls, size_t size, void *buf)
546 } 546 }
547 GNUNET_CONTAINER_DLL_remove (h->control_head, 547 GNUNET_CONTAINER_DLL_remove (h->control_head,
548 h->control_tail, 548 h->control_tail,
549 cm); 549 cm);
550 nret = cm->notify (cm->notify_cls, size, &cbuf[ret]); 550 nret = cm->notify (cm->notify_cls, size, &cbuf[ret]);
551 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
552 "Added %u bytes of control message at %u\n",
553 nret,
554 ret);
551 GNUNET_free (cm); 555 GNUNET_free (cm);
552 ret += nret; 556 ret += nret;
553 size -= nret; 557 size -= nret;
@@ -582,6 +586,10 @@ transport_notify_ready (void *cls, size_t size, void *buf)
582 mret = th->notify (th->notify_cls, 586 mret = th->notify (th->notify_cls,
583 size - sizeof (struct OutboundMessage), 587 size - sizeof (struct OutboundMessage),
584 &cbuf[ret + sizeof (struct OutboundMessage)]); 588 &cbuf[ret + sizeof (struct OutboundMessage)]);
589 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
590 "Added %u bytes of data message at %u\n",
591 mret,
592 ret);
585 GNUNET_assert (mret <= size - sizeof (struct OutboundMessage)); 593 GNUNET_assert (mret <= size - sizeof (struct OutboundMessage));
586#if DEBUG_TRANSPORT 594#if DEBUG_TRANSPORT
587 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 595 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,