aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2012-09-18 13:22:30 +0000
committerBart Polot <bart@net.in.tum.de>2012-09-18 13:22:30 +0000
commitdd663a8d291aa5cd0a1235856ba60b71c4c3d344 (patch)
tree755bd2927f5c5af0111d21bad631a196d1b2bc20
parente5e65405bdff8e86535676dd7b84f3db9759de42 (diff)
downloadgnunet-dd663a8d291aa5cd0a1235856ba60b71c4c3d344.tar.gz
gnunet-dd663a8d291aa5cd0a1235856ba60b71c4c3d344.zip
- log errors only when they are errors
-rw-r--r--src/mesh/gnunet-service-mesh.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mesh/gnunet-service-mesh.c b/src/mesh/gnunet-service-mesh.c
index 5f47c50d1..e185d0cd4 100644
--- a/src/mesh/gnunet-service-mesh.c
+++ b/src/mesh/gnunet-service-mesh.c
@@ -1335,11 +1335,13 @@ regex_next_edge (const struct MeshRegexBlock *block,
1335 struct MeshRegexSearchInfo *info = ctx->info; 1335 struct MeshRegexSearchInfo *info = ctx->info;
1336 struct GNUNET_DHT_GetHandle *get_h; 1336 struct GNUNET_DHT_GetHandle *get_h;
1337 1337
1338 int result;
1339
1338 /* Find the longest match for the current string position, 1340 /* Find the longest match for the current string position,
1339 * among tokens in the given block */ 1341 * among tokens in the given block */
1340 GNUNET_break (GNUNET_OK == 1342 result = GNUNET_MESH_regex_block_iterate (block, size,
1341 GNUNET_MESH_regex_block_iterate (block, size, 1343 &regex_edge_iterator, ctx);
1342 &regex_edge_iterator, ctx)); 1344 GNUNET_break (GNUNET_OK == result || SIZE_MAX == size);
1343 1345
1344 new_ctx = GNUNET_malloc (sizeof (struct MeshRegexSearchContext)); 1346 new_ctx = GNUNET_malloc (sizeof (struct MeshRegexSearchContext));
1345 new_ctx->info = info; 1347 new_ctx->info = info;