aboutsummaryrefslogtreecommitdiff
path: root/src/regex/test_regex_iterate_api.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-12-14 20:12:39 +0000
committerChristian Grothoff <christian@grothoff.org>2012-12-14 20:12:39 +0000
commita3aacce89467a1cbcd2193d8a667aad069b47be5 (patch)
treee2fc058e0fb2d89af10bedd36d5c472925b8af0e /src/regex/test_regex_iterate_api.c
parent0f16f15060952ceae16cf6e321b161b8793eed3c (diff)
-minor fixes
Diffstat (limited to 'src/regex/test_regex_iterate_api.c')
-rw-r--r--src/regex/test_regex_iterate_api.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/regex/test_regex_iterate_api.c b/src/regex/test_regex_iterate_api.c
index a680ca9f80..695bc30759 100644
--- a/src/regex/test_regex_iterate_api.c
+++ b/src/regex/test_regex_iterate_api.c
@@ -57,7 +57,8 @@ struct RegexStringPair
char *strings[20];
};
-void
+
+static void
key_iterator (void *cls, const struct GNUNET_HashCode *key, const char *proof,
int accepting, unsigned int num_edges,
const struct GNUNET_REGEX_Edge *edges)
@@ -67,6 +68,7 @@ key_iterator (void *cls, const struct GNUNET_HashCode *key, const char *proof,
char *out_str;
char *state_id = GNUNET_strdup (GNUNET_h2s (key));
+ GNUNET_assert (NULL != proof);
if (GNUNET_YES == ctx->should_save_graph)
{
if (GNUNET_YES == accepting)