- Remove printf, use GNUNET_log INFO
[oweals/gnunet.git] / src / regex / test_regex_iterate_api.c
index a680ca9f8062a9ac10644f5226194bcd31589e9f..695bc3075969481eab850c5e6a017c0673604677 100644 (file)
@@ -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)