diff options
author | bartpolot <bartpolot@140774ce-b5e7-0310-ab8b-a85725594a96> | 2013-09-19 16:17:52 +0000 |
---|---|---|
committer | bartpolot <bartpolot@140774ce-b5e7-0310-ab8b-a85725594a96> | 2013-09-19 16:17:52 +0000 |
commit | 582e919afbcfef6ea53119e9ee945d8608de99b9 (patch) | |
tree | 4bbd639d361269d0a42441399934c54ba7f23fc3 /src/regex/regex_test_lib.c | |
parent | 8bfa8ffbd1116318b1f17f3799263fcf47fb6162 (diff) |
- tweaks for hex experiments
git-svn-id: https://gnunet.org/svn/gnunet@29422 140774ce-b5e7-0310-ab8b-a85725594a96
Diffstat (limited to 'src/regex/regex_test_lib.c')
-rw-r--r-- | src/regex/regex_test_lib.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/regex/regex_test_lib.c b/src/regex/regex_test_lib.c index d39db7ef84..c55e0499a5 100644 --- a/src/regex/regex_test_lib.c +++ b/src/regex/regex_test_lib.c @@ -390,17 +390,7 @@ REGEX_TEST_read_from_file (const char *filename) offset += len + 1; if (len < 1) continue; - if (len < 6 || strncmp (®ex[len - 6], "(0|1)*", 6) != 0) - { - GNUNET_log (GNUNET_ERROR_TYPE_WARNING, - "%s (line %u) does not end in \"(0|1)*\"\n", - buffer, nr); - } - else - { - len -= 6; - regex[len] = '\0'; - } + regex[len] = '\0'; regex = GNUNET_realloc (regex, len + 1); GNUNET_array_grow (regexes, nr, nr + 1); GNUNET_assert (NULL == regexes[nr - 2]); |