aboutsummaryrefslogtreecommitdiff
path: root/src/fs/perf_gnunet_service_fs_p2p.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/perf_gnunet_service_fs_p2p.c')
-rw-r--r--src/fs/perf_gnunet_service_fs_p2p.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/fs/perf_gnunet_service_fs_p2p.c b/src/fs/perf_gnunet_service_fs_p2p.c
index 61356a644..2462bb3f2 100644
--- a/src/fs/perf_gnunet_service_fs_p2p.c
+++ b/src/fs/perf_gnunet_service_fs_p2p.c
@@ -124,7 +124,7 @@ print_stat (void *cls, const char *subsystem, const char *name, uint64_t value,
124 * Function that gathers stats from all daemons. 124 * Function that gathers stats from all daemons.
125 */ 125 */
126static void 126static void
127stat_run (void *cls, 127stat_run (void *cls,
128 struct GNUNET_TESTBED_Operation *op, 128 struct GNUNET_TESTBED_Operation *op,
129 void *ca_result, 129 void *ca_result,
130 const char *emsg); 130 const char *emsg);
@@ -147,7 +147,7 @@ get_done (void *cls, int success)
147/** 147/**
148 * Adapter function called to establish a connection to 148 * Adapter function called to establish a connection to
149 * statistics service. 149 * statistics service.
150 * 150 *
151 * @param cls closure 151 * @param cls closure
152 * @param cfg configuration of the peer to connect to; will be available until 152 * @param cfg configuration of the peer to connect to; will be available until
153 * GNUNET_TESTBED_operation_done() is called on the operation returned 153 * GNUNET_TESTBED_operation_done() is called on the operation returned
@@ -166,11 +166,11 @@ statistics_connect_adapter (void *cls,
166/** 166/**
167 * Adapter function called to destroy a connection to 167 * Adapter function called to destroy a connection to
168 * statistics service. 168 * statistics service.
169 * 169 *
170 * @param cls closure 170 * @param cls closure
171 * @param op_result service handle returned from the connect adapter 171 * @param op_result service handle returned from the connect adapter
172 */ 172 */
173static void 173static void
174statistics_disconnect_adapter (void *cls, 174statistics_disconnect_adapter (void *cls,
175 void *op_result) 175 void *op_result)
176{ 176{
@@ -182,7 +182,7 @@ statistics_disconnect_adapter (void *cls,
182 * Function that gathers stats from all daemons. 182 * Function that gathers stats from all daemons.
183 */ 183 */
184static void 184static void
185stat_run (void *cls, 185stat_run (void *cls,
186 struct GNUNET_TESTBED_Operation *op, 186 struct GNUNET_TESTBED_Operation *op,
187 void *ca_result, 187 void *ca_result,
188 const char *emsg) 188 const char *emsg)
@@ -244,12 +244,12 @@ do_report (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
244 GNUNET_DISK_directory_remove (fn); 244 GNUNET_DISK_directory_remove (fn);
245 GNUNET_free (fn); 245 GNUNET_free (fn);
246 } 246 }
247 if (0 != (tc->reason & GNUNET_SCHEDULER_REASON_TIMEOUT)) 247 if (0 != (tc->reason & GNUNET_SCHEDULER_REASON_TIMEOUT))
248 { 248 {
249 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, 249 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
250 "Timeout during download, shutting down with error\n"); 250 "Timeout during download, shutting down with error\n");
251 ok = 1; 251 ok = 1;
252 GNUNET_SCHEDULER_shutdown (); 252 GNUNET_SCHEDULER_shutdown ();
253 return; 253 return;
254 } 254 }
255 255
@@ -276,7 +276,7 @@ do_report (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
276 276
277 277
278static void 278static void
279do_download (void *cls, 279do_download (void *cls,
280 const struct GNUNET_FS_Uri *uri, 280 const struct GNUNET_FS_Uri *uri,
281 const char *fn) 281 const char *fn)
282{ 282{
@@ -298,7 +298,7 @@ do_download (void *cls,
298 else 298 else
299 anonymity = 1; 299 anonymity = 1;
300 GNUNET_FS_TEST_download (daemons[0], TIMEOUT, anonymity, SEED, uri, VERBOSE, 300 GNUNET_FS_TEST_download (daemons[0], TIMEOUT, anonymity, SEED, uri, VERBOSE,
301 &do_report, 301 &do_report,
302 (NULL == fn) ? NULL : GNUNET_strdup (fn)); 302 (NULL == fn) ? NULL : GNUNET_strdup (fn));
303} 303}
304 304
@@ -314,7 +314,7 @@ do_publish (void *cls,
314 unsigned int i; 314 unsigned int i;
315 int do_index; 315 int do_index;
316 int anonymity; 316 int anonymity;
317 317
318 GNUNET_assert (NUM_DAEMONS == num_peers); 318 GNUNET_assert (NUM_DAEMONS == num_peers);
319 for (i=0;i<num_peers;i++) 319 for (i=0;i<num_peers;i++)
320 daemons[i] = peers[i]; 320 daemons[i] = peers[i];