From 5db334d7a6a36f1536e4268da7ca87c027ffc5ee Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 11 Jun 2014 09:36:05 +0000 Subject: -misc fixes --- src/transport/gnunet-service-transport_clients.c | 13 +++++++++++++ src/transport/plugin_transport_http_common.c | 2 +- src/transport/plugin_transport_wlan.c | 4 ++-- 3 files changed, 16 insertions(+), 3 deletions(-) (limited to 'src/transport') diff --git a/src/transport/gnunet-service-transport_clients.c b/src/transport/gnunet-service-transport_clients.c index fc3abdd1a..1c00e0ebd 100644 --- a/src/transport/gnunet-service-transport_clients.c +++ b/src/transport/gnunet-service-transport_clients.c @@ -882,6 +882,11 @@ transmit_address_to_client (void *cls, size_t len; size_t slen; + fprintf (stderr, + "TATC: %p: %p/%d\n", + actx, + buf, + res); GNUNET_assert ( (GNUNET_OK == res) || (GNUNET_SYSERR == res) ); if (NULL == buf) @@ -987,6 +992,9 @@ clients_handle_address_to_string (void *cls, papi = GST_plugins_printer_find (plugin_name); if (NULL == papi) { + fprintf (stderr, + "DEAD: %s\n", + plugin_name); atsm.header.size = ntohs (sizeof (struct AddressToStringResultMessage)); atsm.header.type = ntohs (GNUNET_MESSAGE_TYPE_TRANSPORT_ADDRESS_TO_STRING_REPLY); atsm.res = htonl (GNUNET_SYSERR); @@ -1003,6 +1011,11 @@ clients_handle_address_to_string (void *cls, return; } actx = GNUNET_new (struct AddressToStringContext); + fprintf (stderr, + "AAAA: %p - %s\n", + actx, + plugin_name); + actx->tc = tc; GNUNET_CONTAINER_DLL_insert (a2s_head, a2s_tail, actx); GNUNET_SERVER_disable_receive_done_warning (client); diff --git a/src/transport/plugin_transport_http_common.c b/src/transport/plugin_transport_http_common.c index 02129f37d..763c252ea 100644 --- a/src/transport/plugin_transport_http_common.c +++ b/src/transport/plugin_transport_http_common.c @@ -214,7 +214,7 @@ http_common_plugin_address_pretty_printer (void *cls, address, addrlen); asc (asc_cls, - NULL, + ret, (NULL == ret) ? GNUNET_SYSERR : GNUNET_OK); asc (asc_cls, NULL, diff --git a/src/transport/plugin_transport_wlan.c b/src/transport/plugin_transport_wlan.c index 6da3365eb..49dfee816 100644 --- a/src/transport/plugin_transport_wlan.c +++ b/src/transport/plugin_transport_wlan.c @@ -1646,8 +1646,8 @@ send_hello_beacon (void *cls, * * @param cls closure * @param addr pointer to the address - * @param addrlen length of addr - * @return GNUNET_OK if this is a plausible address for this peer + * @param addrlen length of @a addr + * @return #GNUNET_OK if this is a plausible address for this peer * and transport */ static int -- cgit v1.2.3