aboutsummaryrefslogtreecommitdiff
path: root/src/transport/test_plugin_transport_http.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2010-05-06 15:15:11 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2010-05-06 15:15:11 +0000
commit7cab8b65c6b29961dcff5e2c9a9c34a352cc7967 (patch)
tree8c8fd91c5337753fac3fcae48a0b8248fdd92ea0 /src/transport/test_plugin_transport_http.c
parente36539c6ee5b975b883571f67b7f55c7935023ab (diff)
downloadgnunet-7cab8b65c6b29961dcff5e2c9a9c34a352cc7967.tar.gz
gnunet-7cab8b65c6b29961dcff5e2c9a9c34a352cc7967.zip
Diffstat (limited to 'src/transport/test_plugin_transport_http.c')
-rw-r--r--src/transport/test_plugin_transport_http.c23
1 files changed, 4 insertions, 19 deletions
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 @@
55/** 55/**
56 * Our public key. 56 * Our public key.
57 */ 57 */
58static struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded my_public_key; 58/* static struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded my_public_key; */
59 59
60/** 60/**
61 * Our identity. 61 * Our identity.
@@ -184,15 +184,15 @@ process_stat (void *cls,
184 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Shutdown, plugin failed \n"); 184 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Shutdown, plugin failed \n");
185 fail = GNUNET_YES; 185 fail = GNUNET_YES;
186 shutdown_clean(); 186 shutdown_clean();
187 return; 187 return GNUNET_YES;
188 } 188 }
189 if (value==2) 189 if (value==2)
190 { 190 {
191 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Shutdown, plugin not failed \n"); 191 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Shutdown, plugin not failed \n");
192 shutdown_clean(); 192 shutdown_clean();
193 return; 193 return GNUNET_YES;
194 } 194 }
195 return; 195 return GNUNET_YES;
196} 196}
197 197
198 198
@@ -231,21 +231,6 @@ task_check_stat (void *cls,
231 return; 231 return;
232} 232}
233 233
234static size_t read_callback(void *ptr, size_t size, size_t nmemb, void *stream)
235{
236 size_t retcode;
237
238 /* in real-world cases, this would probably get this data differently
239 as this fread() stuff is exactly what the library already would do
240 by default internally */
241 retcode = fread(ptr, size, nmemb, stream);
242
243 fprintf(stderr, "*** We read %d bytes from file\n", retcode);
244
245 return retcode;
246}
247
248
249/** 234/**
250 * Runs the test. 235 * Runs the test.
251 * 236 *