diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-12-08 23:19:15 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-12-08 23:19:15 +0000 |
commit | 7aefe171ca7e80b770826b209e10556cc7d2f15c (patch) | |
tree | ec5c5535584de30990766536a669ed7b438746ae /src/transport/transport_api.c | |
parent | 06d9c7bef832c213b40a7fd2ea379fa3293bd598 (diff) | |
download | gnunet-7aefe171ca7e80b770826b209e10556cc7d2f15c.tar.gz gnunet-7aefe171ca7e80b770826b209e10556cc7d2f15c.zip |
-cleanup
Diffstat (limited to 'src/transport/transport_api.c')
-rw-r--r-- | src/transport/transport_api.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/transport/transport_api.c b/src/transport/transport_api.c index de596501a..327827113 100644 --- a/src/transport/transport_api.c +++ b/src/transport/transport_api.c | |||
@@ -481,7 +481,7 @@ neighbour_delete (void *cls, | |||
481 | /** | 481 | /** |
482 | * Function we use for handling incoming messages. | 482 | * Function we use for handling incoming messages. |
483 | * | 483 | * |
484 | * @param cls closure (struct GNUNET_TRANSPORT_Handle *) | 484 | * @param cls closure, a `struct GNUNET_TRANSPORT_Handle *` |
485 | * @param msg message received, NULL on timeout or fatal error | 485 | * @param msg message received, NULL on timeout or fatal error |
486 | */ | 486 | */ |
487 | static void | 487 | static void |
@@ -714,9 +714,9 @@ timeout_request_due_to_congestion (void *cls, | |||
714 | * Transmit message(s) to service. | 714 | * Transmit message(s) to service. |
715 | * | 715 | * |
716 | * @param cls handle to transport | 716 | * @param cls handle to transport |
717 | * @param size number of bytes available in buf | 717 | * @param size number of bytes available in @a buf |
718 | * @param buf where to copy the message | 718 | * @param buf where to copy the message |
719 | * @return number of bytes copied to buf | 719 | * @return number of bytes copied to @a buf |
720 | */ | 720 | */ |
721 | static size_t | 721 | static size_t |
722 | transport_notify_ready (void *cls, size_t size, void *buf) | 722 | transport_notify_ready (void *cls, size_t size, void *buf) |
@@ -746,7 +746,8 @@ transport_notify_ready (void *cls, size_t size, void *buf) | |||
746 | { | 746 | { |
747 | GNUNET_CONTAINER_DLL_remove (h->control_head, h->control_tail, th); | 747 | GNUNET_CONTAINER_DLL_remove (h->control_head, h->control_tail, th); |
748 | nret = th->notify (th->notify_cls, size, &cbuf[ret]); | 748 | nret = th->notify (th->notify_cls, size, &cbuf[ret]); |
749 | LOG (GNUNET_ERROR_TYPE_DEBUG, "Added %u bytes of control message at %u\n", | 749 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
750 | "Added %u bytes of control message at %u\n", | ||
750 | nret, ret); | 751 | nret, ret); |
751 | GNUNET_free (th); | 752 | GNUNET_free (th); |
752 | ret += nret; | 753 | ret += nret; |
@@ -913,7 +914,7 @@ schedule_transmission (struct GNUNET_TRANSPORT_Handle *h) | |||
913 | * @param h handle to the transport service | 914 | * @param h handle to the transport service |
914 | * @param size number of bytes to be transmitted | 915 | * @param size number of bytes to be transmitted |
915 | * @param notify function to call to get the content | 916 | * @param notify function to call to get the content |
916 | * @param notify_cls closure for notify | 917 | * @param notify_cls closure for @a notify |
917 | * @return a `struct GNUNET_TRANSPORT_TransmitHandle` | 918 | * @return a `struct GNUNET_TRANSPORT_TransmitHandle` |
918 | */ | 919 | */ |
919 | static struct GNUNET_TRANSPORT_TransmitHandle * | 920 | static struct GNUNET_TRANSPORT_TransmitHandle * |
@@ -940,9 +941,9 @@ schedule_control_transmit (struct GNUNET_TRANSPORT_Handle *h, size_t size, | |||
940 | * Transmit START message to service. | 941 | * Transmit START message to service. |
941 | * | 942 | * |
942 | * @param cls unused | 943 | * @param cls unused |
943 | * @param size number of bytes available in buf | 944 | * @param size number of bytes available in @a buf |
944 | * @param buf where to copy the message | 945 | * @param buf where to copy the message |
945 | * @return number of bytes copied to buf | 946 | * @return number of bytes copied to @a buf |
946 | */ | 947 | */ |
947 | static size_t | 948 | static size_t |
948 | send_start (void *cls, size_t size, void *buf) | 949 | send_start (void *cls, size_t size, void *buf) |
@@ -1384,7 +1385,7 @@ GNUNET_TRANSPORT_offer_hello_cancel (struct GNUNET_TRANSPORT_OfferHelloHandle *o | |||
1384 | */ | 1385 | */ |
1385 | int | 1386 | int |
1386 | GNUNET_TRANSPORT_check_peer_connected (struct GNUNET_TRANSPORT_Handle *handle, | 1387 | GNUNET_TRANSPORT_check_peer_connected (struct GNUNET_TRANSPORT_Handle *handle, |
1387 | const struct GNUNET_PeerIdentity *peer) | 1388 | const struct GNUNET_PeerIdentity *peer) |
1388 | { | 1389 | { |
1389 | if (GNUNET_YES == | 1390 | if (GNUNET_YES == |
1390 | GNUNET_CONTAINER_multipeermap_contains (handle->neighbours, | 1391 | GNUNET_CONTAINER_multipeermap_contains (handle->neighbours, |