aboutsummaryrefslogtreecommitdiff
path: root/src/regex
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-05-06 14:44:08 +0000
committerChristian Grothoff <christian@grothoff.org>2016-05-06 14:44:08 +0000
commite8cf81fdb3fdaef59b49da8f6e952a3225ab326e (patch)
tree4e5f75d44a9121b32895fdfc5a4177052a7d923d /src/regex
parentae8cb91d9961899075a892a3110204bc139c2eb6 (diff)
downloadgnunet-e8cf81fdb3fdaef59b49da8f6e952a3225ab326e.tar.gz
gnunet-e8cf81fdb3fdaef59b49da8f6e952a3225ab326e.zip
fixing compiler warnings
Diffstat (limited to 'src/regex')
-rw-r--r--src/regex/gnunet-regex-profiler.c8
-rw-r--r--src/regex/regex_block_lib.c17
2 files changed, 17 insertions, 8 deletions
diff --git a/src/regex/gnunet-regex-profiler.c b/src/regex/gnunet-regex-profiler.c
index db5432845..f65681848 100644
--- a/src/regex/gnunet-regex-profiler.c
+++ b/src/regex/gnunet-regex-profiler.c
@@ -559,7 +559,10 @@ stats_iterator (void *cls,
559 { 559 {
560 GNUNET_log (GNUNET_ERROR_TYPE_INFO, 560 GNUNET_log (GNUNET_ERROR_TYPE_INFO,
561 "%p -> %s [%s]: %llu\n", 561 "%p -> %s [%s]: %llu\n",
562 peer, subsystem, name, value); 562 peer,
563 subsystem,
564 name,
565 (unsigned long long) value);
563 return GNUNET_OK; 566 return GNUNET_OK;
564 } 567 }
565 size = 568 size =
@@ -569,7 +572,8 @@ stats_iterator (void *cls,
569 peer, 572 peer,
570 subsystem, value, name); 573 subsystem, value, name);
571 if (size != GNUNET_DISK_file_write (data_file, output_buffer, size)) 574 if (size != GNUNET_DISK_file_write (data_file, output_buffer, size))
572 GNUNET_log (GNUNET_ERROR_TYPE_WARNING, "Unable to write to file!\n"); 575 GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
576 "Unable to write to file!\n");
573 577
574 return GNUNET_OK; 578 return GNUNET_OK;
575} 579}
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 */
169static int 169static int
170check_edge (void *cls, 170check_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;