aboutsummaryrefslogtreecommitdiff
path: root/src/mesh/test_mesh_regex.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesh/test_mesh_regex.c')
-rw-r--r--src/mesh/test_mesh_regex.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mesh/test_mesh_regex.c b/src/mesh/test_mesh_regex.c
index f7c880474..049b03241 100644
--- a/src/mesh/test_mesh_regex.c
+++ b/src/mesh/test_mesh_regex.c
@@ -50,7 +50,7 @@ static int ok[MESH_REGEX_PEERS];
50/** 50/**
51 * How many connects have happened. 51 * How many connects have happened.
52 */ 52 */
53static int connected_peers; 53static int regex_peers;
54 54
55/** 55/**
56 * Be verbose 56 * Be verbose
@@ -286,7 +286,7 @@ ch (void *cls, const struct GNUNET_PeerIdentity *peer,
286 GNUNET_log (GNUNET_ERROR_TYPE_INFO, 286 GNUNET_log (GNUNET_ERROR_TYPE_INFO,
287 "Peer connected: %s\n", 287 "Peer connected: %s\n",
288 GNUNET_i2s (peer)); 288 GNUNET_i2s (peer));
289 connected_peers++; 289 regex_peers++;
290 290
291 GNUNET_MESH_notify_transmit_ready(t[i], 0, 0, 291 GNUNET_MESH_notify_transmit_ready(t[i], 0, 0,
292 GNUNET_TIME_UNIT_FOREVER_REL, 292 GNUNET_TIME_UNIT_FOREVER_REL,
@@ -432,7 +432,7 @@ peergroup_ready (void *cls, const char *emsg)
432 NULL, 432 NULL,
433 handlers, 433 handlers,
434 &app); 434 &app);
435 connected_peers = 0; 435 regex_peers = 0;
436 for (i = 0; i < MESH_REGEX_PEERS; i++) 436 for (i = 0; i < MESH_REGEX_PEERS; i++)
437 { 437 {
438 ok[i] = GNUNET_NO; 438 ok[i] = GNUNET_NO;
@@ -601,11 +601,11 @@ main (int argc, char *argv[])
601 i, strings[i]); 601 i, strings[i]);
602 } 602 }
603 } 603 }
604 if (GNUNET_OK != result || connected_peers != MESH_REGEX_PEERS) 604 if (GNUNET_OK != result || regex_peers != MESH_REGEX_PEERS)
605 { 605 {
606 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, 606 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
607 "test: FAILED! %u connected peers\n", 607 "test: FAILED! %u connected peers\n",
608 connected_peers); 608 regex_peers);
609 return 1; 609 return 1;
610 } 610 }
611 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "test: success\n"); 611 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "test: success\n");