aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid Barksdale <amatus@amatus.name>2013-11-30 11:21:29 -0600
committerDavid Barksdale <amatus@amatus.name>2013-11-30 11:21:29 -0600
commit7af20b5dd5601d6baa954dd12d44d6271aa5d97a (patch)
tree202d2fb6047a64efd005d9009eee8c4eb973fefa /src
parent60e06bd0376a72f015f1d83296a87479ea85349b (diff)
Revert "- doc, fixes"0.9.5a
This reverts commit 3c2d45918f7fb77caa44e1b3781e83a7549b1010.
Diffstat (limited to 'src')
-rw-r--r--src/regex/regex_test_lib.c25
1 files changed, 1 insertions, 24 deletions
diff --git a/src/regex/regex_test_lib.c b/src/regex/regex_test_lib.c
index 88a76fa27c..7a11fe05ec 100644
--- a/src/regex/regex_test_lib.c
+++ b/src/regex/regex_test_lib.c
@@ -28,35 +28,13 @@
#include "platform.h"
#include "gnunet_util_lib.h"
-
-/**
- * Struct to hold the tree formed by prefix-combining the regexes.
- */
struct RegexCombineCtx {
-
- /**
- * Next node with same prefix but different token.
- */
struct RegexCombineCtx *next;
-
- /**
- * Prev node with same prefix but different token.
- */
struct RegexCombineCtx *prev;
- /**
- * First child node with same prefix and token.
- */
struct RegexCombineCtx *head;
-
- /**
- * Last child node.
- */
struct RegexCombineCtx *tail;
- /**
- * Token.
- */
char *s;
};
@@ -280,11 +258,10 @@ GNUNET_REGEX_read_from_file (const char *filename)
else
{
len -= 6;
- regex[len] = '\0';
+ buffer[len] = '\0';
}
regex = GNUNET_realloc (regex, len + 1);
GNUNET_array_grow (regexes, nr, nr + 1);
- GNUNET_assert (NULL == regexes[nr - 2]);
regexes[nr - 2] = regex;
regexes[nr - 1] = NULL;
regex = NULL;