aboutsummaryrefslogtreecommitdiff
path: root/src/regex/regex_internal.c
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2013-09-26 12:50:40 +0000
committerBart Polot <bart@net.in.tum.de>2013-09-26 12:50:40 +0000
commit31e50803fd8e15d167e048adf58cfb5190464e45 (patch)
tree2a5206f0f3f29f7f4e71b6602be516e80077ff48 /src/regex/regex_internal.c
parent4f35d02a21820b2a3120c4cae04f1c543a727874 (diff)
downloadgnunet-31e50803fd8e15d167e048adf58cfb5190464e45.tar.gz
gnunet-31e50803fd8e15d167e048adf58cfb5190464e45.zip
- indentation, style
Diffstat (limited to 'src/regex/regex_internal.c')
-rw-r--r--src/regex/regex_internal.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/regex/regex_internal.c b/src/regex/regex_internal.c
index 9ea6cb8f5..38a95976a 100644
--- a/src/regex/regex_internal.c
+++ b/src/regex/regex_internal.c
@@ -2822,7 +2822,7 @@ REGEX_INTERNAL_construct_nfa (const char *regex, const size_t len)
2822 nfa_add_concatenation (&ctx); 2822 nfa_add_concatenation (&ctx);
2823 } 2823 }
2824 if (poff == psize) 2824 if (poff == psize)
2825 GNUNET_array_grow (p, psize, psize * 2 + 4); 2825 GNUNET_array_grow (p, psize, psize * 2 + 4); /* FIXME why *2 +4? */
2826 p[poff].altcount = altcount; 2826 p[poff].altcount = altcount;
2827 p[poff].atomcount = atomcount; 2827 p[poff].atomcount = atomcount;
2828 poff++; 2828 poff++;
@@ -3023,7 +3023,7 @@ construct_dfa_states (struct REGEX_INTERNAL_Context *ctx,
3023 */ 3023 */
3024struct REGEX_INTERNAL_Automaton * 3024struct REGEX_INTERNAL_Automaton *
3025REGEX_INTERNAL_construct_dfa (const char *regex, const size_t len, 3025REGEX_INTERNAL_construct_dfa (const char *regex, const size_t len,
3026 unsigned int max_path_len) 3026 unsigned int max_path_len)
3027{ 3027{
3028 struct REGEX_INTERNAL_Context ctx; 3028 struct REGEX_INTERNAL_Context ctx;
3029 struct REGEX_INTERNAL_Automaton *dfa; 3029 struct REGEX_INTERNAL_Automaton *dfa;
@@ -3308,9 +3308,8 @@ REGEX_INTERNAL_get_first_key (const char *input_string, size_t string_len,
3308{ 3308{
3309 size_t size; 3309 size_t size;
3310 3310
3311 size = 3311 size = string_len < GNUNET_REGEX_INITIAL_BYTES ? string_len :
3312 string_len < 3312 GNUNET_REGEX_INITIAL_BYTES;
3313 GNUNET_REGEX_INITIAL_BYTES ? string_len : GNUNET_REGEX_INITIAL_BYTES;
3314 if (NULL == input_string) 3313 if (NULL == input_string)
3315 { 3314 {
3316 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, 3315 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,