diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-05-06 14:44:08 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-05-06 14:44:08 +0000 |
commit | e8cf81fdb3fdaef59b49da8f6e952a3225ab326e (patch) | |
tree | 4e5f75d44a9121b32895fdfc5a4177052a7d923d /src/regex/regex_block_lib.c | |
parent | ae8cb91d9961899075a892a3110204bc139c2eb6 (diff) | |
download | gnunet-e8cf81fdb3fdaef59b49da8f6e952a3225ab326e.tar.gz gnunet-e8cf81fdb3fdaef59b49da8f6e952a3225ab326e.zip |
fixing compiler warnings
Diffstat (limited to 'src/regex/regex_block_lib.c')
-rw-r--r-- | src/regex/regex_block_lib.c | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/src/regex/regex_block_lib.c b/src/regex/regex_block_lib.c index 0ab1aad8f..cd7246957 100644 --- a/src/regex/regex_block_lib.c +++ b/src/regex/regex_block_lib.c | |||
@@ -164,7 +164,7 @@ struct CheckEdgeContext | |||
164 | * @param len Lenght of token. | 164 | * @param len Lenght of token. |
165 | * @param key Hash of next state. | 165 | * @param key Hash of next state. |
166 | * | 166 | * |
167 | * @return GNUNET_YES, to keep iterating | 167 | * @return #GNUNET_YES, to keep iterating |
168 | */ | 168 | */ |
169 | static int | 169 | static int |
170 | check_edge (void *cls, | 170 | check_edge (void *cls, |
@@ -175,8 +175,11 @@ check_edge (void *cls, | |||
175 | struct CheckEdgeContext *ctx = cls; | 175 | struct CheckEdgeContext *ctx = cls; |
176 | 176 | ||
177 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 177 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
178 | "edge %.*s [%u]: %s->%s\n", | 178 | "edge %.*s [%u]: %sn", |
179 | (int) len, token, len, GNUNET_h2s(key)); | 179 | (int) len, |
180 | token, | ||
181 | (unsigned int) len, | ||
182 | GNUNET_h2s (key)); | ||
180 | if (NULL == ctx->xquery) | 183 | if (NULL == ctx->xquery) |
181 | return GNUNET_YES; | 184 | return GNUNET_YES; |
182 | if (strlen (ctx->xquery) < len) | 185 | if (strlen (ctx->xquery) < len) |
@@ -209,7 +212,8 @@ REGEX_BLOCK_check (const struct RegexBlock *block, | |||
209 | struct CheckEdgeContext ctx; | 212 | struct CheckEdgeContext ctx; |
210 | int res; | 213 | int res; |
211 | 214 | ||
212 | LOG (GNUNET_ERROR_TYPE_DEBUG, "Block check\n"); | 215 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
216 | "Block check\n"); | ||
213 | if (GNUNET_OK != | 217 | if (GNUNET_OK != |
214 | REGEX_BLOCK_get_key (block, size, | 218 | REGEX_BLOCK_get_key (block, size, |
215 | &key)) | 219 | &key)) |
@@ -229,8 +233,9 @@ REGEX_BLOCK_check (const struct RegexBlock *block, | |||
229 | ( (NULL == xquery) || ('\0' == xquery[0]) ) ) | 233 | ( (NULL == xquery) || ('\0' == xquery[0]) ) ) |
230 | { | 234 | { |
231 | LOG (GNUNET_ERROR_TYPE_DEBUG, | 235 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
232 | " out! Is accepting: %u, xquery %p\n", | 236 | " out! Is accepting: %u, xquery %p\n", |
233 | ntohs(block->is_accepting), xquery); | 237 | ntohs(block->is_accepting), |
238 | xquery); | ||
234 | return GNUNET_OK; | 239 | return GNUNET_OK; |
235 | } | 240 | } |
236 | ctx.xquery = xquery; | 241 | ctx.xquery = xquery; |