From: Matthias Wachs Date: Thu, 6 May 2010 15:15:11 +0000 (+0000) Subject: (no commit message) X-Git-Tag: initial-import-from-subversion-38251~21842 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=7cab8b65c6b29961dcff5e2c9a9c34a352cc7967;p=oweals%2Fgnunet.git --- diff --git a/src/transport/plugin_transport_http.c b/src/transport/plugin_transport_http.c index 297bc8c07..da3d03a19 100644 --- a/src/transport/plugin_transport_http.c +++ b/src/transport/plugin_transport_http.c @@ -168,12 +168,7 @@ static GNUNET_SCHEDULER_TaskIdentifier http_task_v6; */ static GNUNET_SCHEDULER_TaskIdentifier ti_download; -static int running; - -/** - * Buffer for data downloaded via HTTP. - */ -static char download_buffer[GNUNET_SERVER_MAX_MESSAGE_SIZE]; +/* static int running; */ /** * Curl multi for managing client operations. diff --git a/src/transport/test_plugin_transport_http.c b/src/transport/test_plugin_transport_http.c index 1d4ba2925..248a38f91 100644 --- a/src/transport/test_plugin_transport_http.c +++ b/src/transport/test_plugin_transport_http.c @@ -55,7 +55,7 @@ /** * Our public key. */ -static struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded my_public_key; +/* static struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded my_public_key; */ /** * Our identity. @@ -184,15 +184,15 @@ process_stat (void *cls, GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Shutdown, plugin failed \n"); fail = GNUNET_YES; shutdown_clean(); - return; + return GNUNET_YES; } if (value==2) { GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Shutdown, plugin not failed \n"); shutdown_clean(); - return; + return GNUNET_YES; } - return; + return GNUNET_YES; } @@ -231,21 +231,6 @@ task_check_stat (void *cls, return; } -static size_t read_callback(void *ptr, size_t size, size_t nmemb, void *stream) -{ - size_t retcode; - - /* in real-world cases, this would probably get this data differently - as this fread() stuff is exactly what the library already would do - by default internally */ - retcode = fread(ptr, size, nmemb, stream); - - fprintf(stderr, "*** We read %d bytes from file\n", retcode); - - return retcode; -} - - /** * Runs the test. *