aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2011-10-26 12:10:32 +0000
committerBart Polot <bart@net.in.tum.de>2011-10-26 12:10:32 +0000
commit9a07ba196afb7c09422b0fa33071c4c42079f487 (patch)
tree139d32be037ec4e7228ed7a4df09fd267dbd8957 /src
parent6e3fa264ddd8f8d3bebd44e37e512ea2dba7d0ba (diff)
downloadgnunet-9a07ba196afb7c09422b0fa33071c4c42079f487.tar.gz
gnunet-9a07ba196afb7c09422b0fa33071c4c42079f487.zip
Transformed assert into warning
Diffstat (limited to 'src')
-rw-r--r--src/mesh/test_mesh_small.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mesh/test_mesh_small.c b/src/mesh/test_mesh_small.c
index 6545472c9..cf647be56 100644
--- a/src/mesh/test_mesh_small.c
+++ b/src/mesh/test_mesh_small.c
@@ -518,12 +518,12 @@ topo_cb (void *cls,
518 if (p1 == pid1) 518 if (p1 == pid1)
519 { 519 {
520 p2 = GNUNET_PEER_search(second); 520 p2 = GNUNET_PEER_search(second);
521 GNUNET_assert(p2 < num_peers); 521 if (p2 == 0 || p2 > num_peers)
522 if (p2 == 0)
523 { 522 {
524 GNUNET_log (GNUNET_ERROR_TYPE_WARNING, 523 GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
525 "***************** test: %s is UNKNOWN!?\n", 524 "***************** test: %s is UNKNOWN!? (%u)\n",
526 GNUNET_i2s(second)); 525 GNUNET_i2s(second),
526 p2);
527 return; 527 return;
528 } 528 }
529 mesh_peers[p2]++; 529 mesh_peers[p2]++;
@@ -536,12 +536,12 @@ topo_cb (void *cls,
536 if (p1 == pid1) 536 if (p1 == pid1)
537 { 537 {
538 p2 = GNUNET_PEER_search(first); 538 p2 = GNUNET_PEER_search(first);
539 GNUNET_assert(p2 < num_peers); 539 if (p2 == 0 || p2 > num_peers)
540 if (p2 == 0)
541 { 540 {
542 GNUNET_log (GNUNET_ERROR_TYPE_WARNING, 541 GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
543 "***************** test: %s is UNKNOWN!?\n", 542 "***************** test: %s is UNKNOWN!? (%u)\n",
544 GNUNET_i2s(first)); 543 GNUNET_i2s(first),
544 p2);
545 return; 545 return;
546 } 546 }
547 mesh_peers[p2]++; 547 mesh_peers[p2]++;