diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-06-26 11:50:16 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-06-26 11:50:16 +0000 |
commit | 5f38f9933e6f19fcef0ded8aad3d6db4e6cbb666 (patch) | |
tree | 7c17cf8ad811c21520f0e73fd7124d5a33c8935b /src/regex/plugin_block_regex.c | |
parent | ae4ab9e6ce8d7529bec34bef3d7db62c393dd918 (diff) |
-cleaning up block code, moving all of the block logic into the block library
Diffstat (limited to 'src/regex/plugin_block_regex.c')
-rw-r--r-- | src/regex/plugin_block_regex.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/regex/plugin_block_regex.c b/src/regex/plugin_block_regex.c index 82341813e5..565356786f 100644 --- a/src/regex/plugin_block_regex.c +++ b/src/regex/plugin_block_regex.c @@ -48,11 +48,12 @@ */ static int rdebug (void *cls, - const char *token, - size_t len, - const struct GNUNET_HashCode *key) + const char *token, + size_t len, + const struct GNUNET_HashCode *key) { - GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, " %s: %.*s\n", + GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, + "%s: %.*s\n", GNUNET_h2s (key), len, token); return GNUNET_YES; } @@ -92,7 +93,7 @@ evaluate_block_regex (void *cls, enum GNUNET_BLOCK_Type type, const char *query; query = (const char *) xquery; - if ('\0' != query[xquery_size - 1]) /* must be valid string */ + if ('\0' != query[xquery_size - 1]) /* must be valid 0-terminated string */ { GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Block xquery not a valid string\n"); @@ -111,8 +112,8 @@ evaluate_block_regex (void *cls, enum GNUNET_BLOCK_Type type, return GNUNET_BLOCK_EVALUATION_RESULT_INVALID; } switch (REGEX_INTERNAL_block_check (reply_block, - reply_block_size, - xquery)) + reply_block_size, + xquery)) { case GNUNET_SYSERR: GNUNET_break_op(0); |