aboutsummaryrefslogtreecommitdiff
path: root/src/regex/regex_internal_dht.c
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2013-09-26 12:46:25 +0000
committerBart Polot <bart@net.in.tum.de>2013-09-26 12:46:25 +0000
commit187a070ea54343a3c478e6c1841402434395b8b6 (patch)
tree21197457cb93dc468be555b07d8e9b977a15ecc8 /src/regex/regex_internal_dht.c
parent6612e2a579c9e42bc679df285edb193ed6d974dd (diff)
downloadgnunet-187a070ea54343a3c478e6c1841402434395b8b6.tar.gz
gnunet-187a070ea54343a3c478e6c1841402434395b8b6.zip
- use REGEX_INTERNAL_iterate_reachable_edges
Diffstat (limited to 'src/regex/regex_internal_dht.c')
-rw-r--r--src/regex/regex_internal_dht.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/regex/regex_internal_dht.c b/src/regex/regex_internal_dht.c
index 56477220b..85fb7bcb8 100644
--- a/src/regex/regex_internal_dht.c
+++ b/src/regex/regex_internal_dht.c
@@ -183,9 +183,7 @@ REGEX_INTERNAL_announce (struct GNUNET_DHT_Handle *dht,
183 h->dht = dht; 183 h->dht = dht;
184 h->stats = stats; 184 h->stats = stats;
185 h->priv = priv; 185 h->priv = priv;
186 h->dfa = REGEX_INTERNAL_construct_dfa (regex, 186 h->dfa = REGEX_INTERNAL_construct_dfa (regex, strlen (regex), compression);
187 strlen (regex),
188 compression);
189 REGEX_INTERNAL_reannounce (h); 187 REGEX_INTERNAL_reannounce (h);
190 return h; 188 return h;
191} 189}
@@ -204,8 +202,7 @@ REGEX_INTERNAL_reannounce (struct REGEX_INTERNAL_Announcement *h)
204 LOG (GNUNET_ERROR_TYPE_INFO, 202 LOG (GNUNET_ERROR_TYPE_INFO,
205 "REGEX_INTERNAL_reannounce: %s\n", 203 "REGEX_INTERNAL_reannounce: %s\n",
206 h->regex); 204 h->regex);
207 REGEX_INTERNAL_iterate_all_edges (h->dfa, 205 REGEX_INTERNAL_iterate_reachable_edges (h->dfa, &regex_iterator, h);
208 &regex_iterator, h);
209} 206}
210 207
211 208