aboutsummaryrefslogtreecommitdiff
path: root/src/regex/regex_block_lib.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-06-26 11:58:56 +0000
committerChristian Grothoff <christian@grothoff.org>2013-06-26 11:58:56 +0000
commitc0101989bb0864a3688f57370e712c91c14ab1cd (patch)
tree6ebabad614d272cd6ec2a0562ae64a5555094808 /src/regex/regex_block_lib.c
parent3ad9123d92423ebf5639ecb86a8e5dd491dffd38 (diff)
-follow naming and coding style conventions
Diffstat (limited to 'src/regex/regex_block_lib.c')
-rw-r--r--src/regex/regex_block_lib.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/regex/regex_block_lib.c b/src/regex/regex_block_lib.c
index b945b9198b..3a18a731ff 100644
--- a/src/regex/regex_block_lib.c
+++ b/src/regex/regex_block_lib.c
@@ -31,7 +31,7 @@
/**
* Struct to keep track of the xquery while iterating all the edges in a block.
*/
-struct regex_block_xquery_ctx
+struct CheckEdgeContext
{
/**
* Xquery: string we are looking for.
@@ -66,7 +66,7 @@ check_edge (void *cls,
size_t len,
const struct GNUNET_HashCode *key)
{
- struct regex_block_xquery_ctx *ctx = cls;
+ struct CheckEdgeContext *ctx = cls;
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"edge %.*s [%u]: %s->%s\n",
@@ -98,9 +98,10 @@ REGEX_BLOCK_check (const struct RegexBlock *block,
size_t size,
const char *xquery)
{
+ struct CheckEdgeContext ctx;
int res;
- struct regex_block_xquery_ctx ctx;
+ // FIXME: fails to check the proof!
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Checking block with xquery `%s'\n",
NULL != xquery ? xquery : "NULL");