diff options
Diffstat (limited to 'src/regex/test_regex_iterate_api.c')
-rw-r--r-- | src/regex/test_regex_iterate_api.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/regex/test_regex_iterate_api.c b/src/regex/test_regex_iterate_api.c index 39959641d..52cd12cb6 100644 --- a/src/regex/test_regex_iterate_api.c +++ b/src/regex/test_regex_iterate_api.c | |||
@@ -27,14 +27,15 @@ | |||
27 | #include "platform.h" | 27 | #include "platform.h" |
28 | #include "gnunet_regex_lib.h" | 28 | #include "gnunet_regex_lib.h" |
29 | 29 | ||
30 | void key_iterator(void *cls, const GNUNET_HashCode *key, const char *proof, | 30 | void |
31 | int accepting, unsigned int num_edges, | 31 | key_iterator (void *cls, const GNUNET_HashCode * key, const char *proof, |
32 | const struct GNUNET_REGEX_Edge *edges) | 32 | int accepting, unsigned int num_edges, |
33 | const struct GNUNET_REGEX_Edge *edges) | ||
33 | { | 34 | { |
34 | int i; | 35 | int i; |
35 | 36 | ||
36 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Iterating...\n"); | 37 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Iterating...\n"); |
37 | for (i=0; i<num_edges; i++) | 38 | for (i = 0; i < num_edges; i++) |
38 | { | 39 | { |
39 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Edge %i: %s\n", i, edges[i].label); | 40 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Edge %i: %s\n", i, edges[i].label); |
40 | } | 41 | } |