From 13361222d8b8d47611d67c240ae2329cdc999a7e Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 1 Nov 2012 16:58:00 +0000 Subject: -doxygen --- src/transport/plugin_transport_http_client.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src/transport') diff --git a/src/transport/plugin_transport_http_client.c b/src/transport/plugin_transport_http_client.c index 8eca99857..ad57e368a 100644 --- a/src/transport/plugin_transport_http_client.c +++ b/src/transport/plugin_transport_http_client.c @@ -344,9 +344,11 @@ client_stop_session_timeout (struct Session *s); static int client_schedule (struct HTTP_Client_Plugin *plugin, int now); + static int client_connect_put (struct Session *s); + /** * Does a session s exists? * @@ -370,21 +372,24 @@ client_exist_session (struct HTTP_Client_Plugin *plugin, struct Session *s) return GNUNET_NO; } + /** * Loggging function * * @param curl the curl easy handle * @param type message type - * @param data data as a not \0-terminated string + * @param data data to log, NOT a 0-terminated string * @param size data length * @param cls the closure * @return always 0 */ static int -client_log (CURL *curl, curl_infotype type, char *data, size_t size, void *cls) +client_log (CURL *curl, curl_infotype type, + const char *data, size_t size, void *cls) { struct ConnectionHandle *ch = cls; - char *ttype = "UNSPECIFIED"; + const char *ttype = "UNSPECIFIED"; + if ((type == CURLINFO_TEXT) || (type == CURLINFO_HEADER_IN) || (type == CURLINFO_HEADER_OUT)) { char text[size + 2]; -- cgit v1.2.3