diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-05-27 21:46:41 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-05-27 21:46:41 +0000 |
commit | 46a63dc665f31fa7d42639ab6adabbdb1af239c8 (patch) | |
tree | 6c3e58a7f57d6d3ee44aa6cd2808b5458d75de4b /src/core/core_api_iterate_peers.c | |
parent | 4848a679018f9e864cd277345191ad8f1000b5ff (diff) | |
download | gnunet-46a63dc665f31fa7d42639ab6adabbdb1af239c8.tar.gz gnunet-46a63dc665f31fa7d42639ab6adabbdb1af239c8.zip |
renaming GNUNET_TIME_relative_get_forever and GNUNET_TIME_absolute_get_forever methods, adding underscore, to make it clear that the respective #defines should be used instead; replacing use of direct function calls with respective macros where applicable; adding additional GNUNET_TIME_relative_get_xxx-functions to avoid calls to GNUNET_TIME_relative_multiply, which turn out to have gotten performance-relevant
Diffstat (limited to 'src/core/core_api_iterate_peers.c')
-rw-r--r-- | src/core/core_api_iterate_peers.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/core_api_iterate_peers.c b/src/core/core_api_iterate_peers.c index 8e6904480..7db948618 100644 --- a/src/core/core_api_iterate_peers.c +++ b/src/core/core_api_iterate_peers.c | |||
@@ -192,11 +192,11 @@ GNUNET_CORE_iterate_peers (const struct GNUNET_CONFIGURATION_Handle *cfg, | |||
192 | request_context->th = | 192 | request_context->th = |
193 | GNUNET_CLIENT_notify_transmit_ready (client, | 193 | GNUNET_CLIENT_notify_transmit_ready (client, |
194 | sizeof (struct GNUNET_MessageHeader), | 194 | sizeof (struct GNUNET_MessageHeader), |
195 | GNUNET_TIME_relative_get_forever (), | 195 | GNUNET_TIME_UNIT_FOREVER_REL, |
196 | GNUNET_YES, &transmit_request, NULL); | 196 | GNUNET_YES, &transmit_request, NULL); |
197 | 197 | ||
198 | GNUNET_CLIENT_receive (client, &receive_info, request_context, | 198 | GNUNET_CLIENT_receive (client, &receive_info, request_context, |
199 | GNUNET_TIME_relative_get_forever ()); | 199 | GNUNET_TIME_UNIT_FOREVER_REL); |
200 | return GNUNET_OK; | 200 | return GNUNET_OK; |
201 | } | 201 | } |
202 | 202 | ||