aboutsummaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-05-27 21:46:41 +0000
committerChristian Grothoff <christian@grothoff.org>2012-05-27 21:46:41 +0000
commit46a63dc665f31fa7d42639ab6adabbdb1af239c8 (patch)
tree6c3e58a7f57d6d3ee44aa6cd2808b5458d75de4b /src/core
parent4848a679018f9e864cd277345191ad8f1000b5ff (diff)
downloadgnunet-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')
-rw-r--r--src/core/core_api_is_connected.c2
-rw-r--r--src/core/core_api_iterate_peers.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/core/core_api_is_connected.c b/src/core/core_api_is_connected.c
index 2e56dffc8..2e01b3691 100644
--- a/src/core/core_api_is_connected.c
+++ b/src/core/core_api_is_connected.c
@@ -204,7 +204,7 @@ GNUNET_CORE_is_peer_connected (const struct GNUNET_CONFIGURATION_Handle *cfg,
204 GNUNET_CLIENT_notify_transmit_ready (client, 204 GNUNET_CLIENT_notify_transmit_ready (client,
205 sizeof (struct GNUNET_MessageHeader) + 205 sizeof (struct GNUNET_MessageHeader) +
206 sizeof (struct GNUNET_PeerIdentity), 206 sizeof (struct GNUNET_PeerIdentity),
207 GNUNET_TIME_relative_get_forever (), 207 GNUNET_TIME_UNIT_FOREVER_REL,
208 GNUNET_YES, &transmit_is_connected_request, cth); 208 GNUNET_YES, &transmit_is_connected_request, cth);
209 GNUNET_assert (NULL != cth->th); 209 GNUNET_assert (NULL != cth->th);
210 return cth; 210 return cth;
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