diff options
Diffstat (limited to 'src/transport/test_transport_api.c')
-rw-r--r-- | src/transport/test_transport_api.c | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/src/transport/test_transport_api.c b/src/transport/test_transport_api.c index ad26833af..566d892b1 100644 --- a/src/transport/test_transport_api.c +++ b/src/transport/test_transport_api.c | |||
@@ -65,26 +65,28 @@ static char *test_name; | |||
65 | static int ok; | 65 | static int ok; |
66 | 66 | ||
67 | static int s_started; | 67 | static int s_started; |
68 | |||
68 | static int s_connected; | 69 | static int s_connected; |
70 | |||
69 | static int s_sending; | 71 | static int s_sending; |
70 | 72 | ||
71 | static GNUNET_SCHEDULER_TaskIdentifier die_task; | 73 | static GNUNET_SCHEDULER_TaskIdentifier die_task; |
72 | 74 | ||
73 | static GNUNET_SCHEDULER_TaskIdentifier send_task; | 75 | static GNUNET_SCHEDULER_TaskIdentifier send_task; |
74 | 76 | ||
75 | struct PeerContext *p1; | 77 | static struct PeerContext *p1; |
76 | 78 | ||
77 | struct PeerContext *p2; | 79 | static struct PeerContext *p2; |
78 | 80 | ||
79 | static GNUNET_TRANSPORT_TESTING_ConnectRequest cc; | 81 | static GNUNET_TRANSPORT_TESTING_ConnectRequest cc; |
80 | 82 | ||
81 | struct GNUNET_TRANSPORT_TransmitHandle *th; | 83 | static struct GNUNET_TRANSPORT_TransmitHandle *th; |
82 | 84 | ||
83 | struct GNUNET_TRANSPORT_TESTING_handle *tth; | 85 | static struct GNUNET_TRANSPORT_TESTING_handle *tth; |
84 | 86 | ||
85 | char *cfg_file_p1; | 87 | static char *cfg_file_p1; |
86 | 88 | ||
87 | char *cfg_file_p2; | 89 | static char *cfg_file_p2; |
88 | 90 | ||
89 | #if VERBOSE | 91 | #if VERBOSE |
90 | #define OKPP do { ok++; FPRINTF (stderr, "Now at stage %u at %s:%u\n", ok, __FILE__, __LINE__); } while (0) | 92 | #define OKPP do { ok++; FPRINTF (stderr, "Now at stage %u at %s:%u\n", ok, __FILE__, __LINE__); } while (0) |
@@ -302,6 +304,7 @@ notify_disconnect (void *cls, const struct GNUNET_PeerIdentity *peer) | |||
302 | th = NULL; | 304 | th = NULL; |
303 | } | 305 | } |
304 | 306 | ||
307 | |||
305 | static void | 308 | static void |
306 | testing_connect_cb (struct PeerContext *p1, struct PeerContext *p2, void *cls) | 309 | testing_connect_cb (struct PeerContext *p1, struct PeerContext *p2, void *cls) |
307 | { | 310 | { |
@@ -317,8 +320,7 @@ testing_connect_cb (struct PeerContext *p1, struct PeerContext *p2, void *cls) | |||
317 | } | 320 | } |
318 | 321 | ||
319 | 322 | ||
320 | 323 | static void | |
321 | void | ||
322 | start_cb (struct PeerContext *p, void *cls) | 324 | start_cb (struct PeerContext *p, void *cls) |
323 | { | 325 | { |
324 | static int started; | 326 | static int started; |
@@ -344,6 +346,7 @@ start_cb (struct PeerContext *p, void *cls) | |||
344 | 346 | ||
345 | } | 347 | } |
346 | 348 | ||
349 | |||
347 | static void | 350 | static void |
348 | run (void *cls, char *const *args, const char *cfgfile, | 351 | run (void *cls, char *const *args, const char *cfgfile, |
349 | const struct GNUNET_CONFIGURATION_Handle *cfg) | 352 | const struct GNUNET_CONFIGURATION_Handle *cfg) |