(no commit message)
authorMatthias Wachs <wachs@net.in.tum.de>
Thu, 6 May 2010 15:15:11 +0000 (15:15 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Thu, 6 May 2010 15:15:11 +0000 (15:15 +0000)
src/transport/plugin_transport_http.c
src/transport/test_plugin_transport_http.c

index 297bc8c077546d7866d23e6b563a236555c7af31..da3d03a1909ca2b9140bd061727c9231d0f3223f 100644 (file)
@@ -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.
index 1d4ba2925546a1fc7545e8b3651eeff259d39d55..248a38f918a689c9c5cba58772afeade79092a2c 100644 (file)
@@ -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.
  *