diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-06-20 09:02:43 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-06-20 09:02:43 +0000 |
commit | 566b7539fcaf9c455da665cb641016d2cfbb1b47 (patch) | |
tree | eb12baa08d99313d6da7eb8c1be17c5e447f1586 /src/regex/gnunet-daemon-regexprofiler.c | |
parent | de9409f80dbfc5cc61a28316b271600e9da95cdc (diff) | |
download | gnunet-566b7539fcaf9c455da665cb641016d2cfbb1b47.tar.gz gnunet-566b7539fcaf9c455da665cb641016d2cfbb1b47.zip |
renaming symbols from libgnunetregextest to have the prefix REGEX_TEST
Diffstat (limited to 'src/regex/gnunet-daemon-regexprofiler.c')
-rw-r--r-- | src/regex/gnunet-daemon-regexprofiler.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/regex/gnunet-daemon-regexprofiler.c b/src/regex/gnunet-daemon-regexprofiler.c index 6a61aa6f0..3f4dd087f 100644 --- a/src/regex/gnunet-daemon-regexprofiler.c +++ b/src/regex/gnunet-daemon-regexprofiler.c | |||
@@ -57,7 +57,7 @@ static struct GNUNET_DHT_Handle *dht_handle; | |||
57 | /** | 57 | /** |
58 | * Peer's regex announce handle. | 58 | * Peer's regex announce handle. |
59 | */ | 59 | */ |
60 | static struct REGEX_ITERNAL_Announcement *announce_handle; | 60 | static struct REGEX_INTERNAL_Announcement *announce_handle; |
61 | 61 | ||
62 | /** | 62 | /** |
63 | * Periodically reannounce regex. | 63 | * Periodically reannounce regex. |
@@ -109,7 +109,7 @@ shutdown_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
109 | 109 | ||
110 | if (NULL != announce_handle) | 110 | if (NULL != announce_handle) |
111 | { | 111 | { |
112 | REGEX_ITERNAL_announce_cancel (announce_handle); | 112 | REGEX_INTERNAL_announce_cancel (announce_handle); |
113 | announce_handle = NULL; | 113 | announce_handle = NULL; |
114 | } | 114 | } |
115 | 115 | ||
@@ -160,7 +160,7 @@ reannounce_regex (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
160 | "First time, creating regex: %s\n", | 160 | "First time, creating regex: %s\n", |
161 | regex); | 161 | regex); |
162 | memset (&id, 0, sizeof (struct GNUNET_PeerIdentity)); | 162 | memset (&id, 0, sizeof (struct GNUNET_PeerIdentity)); |
163 | announce_handle = REGEX_ITERNAL_announce (dht_handle, | 163 | announce_handle = REGEX_INTERNAL_announce (dht_handle, |
164 | &id, | 164 | &id, |
165 | regex, | 165 | regex, |
166 | (unsigned int) max_path_compression, | 166 | (unsigned int) max_path_compression, |
@@ -169,7 +169,7 @@ reannounce_regex (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
169 | else | 169 | else |
170 | { | 170 | { |
171 | GNUNET_assert (NULL != announce_handle); | 171 | GNUNET_assert (NULL != announce_handle); |
172 | REGEX_ITERNAL_reannounce (announce_handle); | 172 | REGEX_INTERNAL_reannounce (announce_handle); |
173 | } | 173 | } |
174 | 174 | ||
175 | random_delay = | 175 | random_delay = |
@@ -330,7 +330,7 @@ run (void *cls, char *const *args GNUNET_UNUSED, | |||
330 | /* Read regexes from policy files */ | 330 | /* Read regexes from policy files */ |
331 | GNUNET_assert (-1 != GNUNET_DISK_directory_scan (policy_dir, &scan, | 331 | GNUNET_assert (-1 != GNUNET_DISK_directory_scan (policy_dir, &scan, |
332 | (void *) (long) peer_id)); | 332 | (void *) (long) peer_id)); |
333 | if (NULL == (components = REGEX_ITERNAL_read_from_file (policy_filename))) | 333 | if (NULL == (components = REGEX_TEST_read_from_file (policy_filename))) |
334 | { | 334 | { |
335 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | 335 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, |
336 | "Policy file %s contains no policies. Exiting.\n", | 336 | "Policy file %s contains no policies. Exiting.\n", |
@@ -339,8 +339,8 @@ run (void *cls, char *const *args GNUNET_UNUSED, | |||
339 | GNUNET_SCHEDULER_shutdown (); | 339 | GNUNET_SCHEDULER_shutdown (); |
340 | return; | 340 | return; |
341 | } | 341 | } |
342 | regex = REGEX_ITERNAL_combine (components); | 342 | regex = REGEX_TEST_combine (components); |
343 | REGEX_ITERNAL_free_from_file (components); | 343 | REGEX_TEST_free_from_file (components); |
344 | 344 | ||
345 | /* Announcing regexes from policy_filename */ | 345 | /* Announcing regexes from policy_filename */ |
346 | GNUNET_asprintf (&rx_with_pfx, "%s(%s)(0|1)*", regex_prefix, regex); | 346 | GNUNET_asprintf (&rx_with_pfx, "%s(%s)(0|1)*", regex_prefix, regex); |