gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r11234 - gnunet/src/transport


From: gnunet
Subject: [GNUnet-SVN] r11234 - gnunet/src/transport
Date: Thu, 6 May 2010 17:15:11 +0200

Author: wachs
Date: 2010-05-06 17:15:11 +0200 (Thu, 06 May 2010)
New Revision: 11234

Modified:
   gnunet/src/transport/plugin_transport_http.c
   gnunet/src/transport/test_plugin_transport_http.c
Log:


Modified: gnunet/src/transport/plugin_transport_http.c
===================================================================
--- gnunet/src/transport/plugin_transport_http.c        2010-05-06 15:08:24 UTC 
(rev 11233)
+++ gnunet/src/transport/plugin_transport_http.c        2010-05-06 15:15:11 UTC 
(rev 11234)
@@ -168,14 +168,9 @@
  */
 static GNUNET_SCHEDULER_TaskIdentifier ti_download;
 
-static int running;
+/* static int running; */
 
 /**
- * Buffer for data downloaded via HTTP.
- */
-static char download_buffer[GNUNET_SERVER_MAX_MESSAGE_SIZE];
-
-/**
  * Curl multi for managing client operations.
  */
 static CURLM *curl_multi;

Modified: gnunet/src/transport/test_plugin_transport_http.c
===================================================================
--- gnunet/src/transport/test_plugin_transport_http.c   2010-05-06 15:08:24 UTC 
(rev 11233)
+++ gnunet/src/transport/test_plugin_transport_http.c   2010-05-06 15:15:11 UTC 
(rev 11234)
@@ -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 @@
     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 @@
   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.
  *





reply via email to

[Prev in Thread] Current Thread [Next in Thread]