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/hostlist | |
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/hostlist')
-rw-r--r-- | src/hostlist/hostlist-client.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/hostlist/hostlist-client.c b/src/hostlist/hostlist-client.c index 9e320e51c..6be37fc78 100644 --- a/src/hostlist/hostlist-client.c +++ b/src/hostlist/hostlist-client.c | |||
@@ -1194,7 +1194,6 @@ handler_advertisement (void *cls, const struct GNUNET_PeerIdentity *peer, | |||
1194 | hostlist->hostlist_uri = (const char *) &hostlist[1]; | 1194 | hostlist->hostlist_uri = (const char *) &hostlist[1]; |
1195 | memcpy (&hostlist[1], uri, uri_size); | 1195 | memcpy (&hostlist[1], uri, uri_size); |
1196 | hostlist->time_creation = GNUNET_TIME_absolute_get (); | 1196 | hostlist->time_creation = GNUNET_TIME_absolute_get (); |
1197 | hostlist->time_last_usage = GNUNET_TIME_absolute_get_zero (); | ||
1198 | hostlist->quality = HOSTLIST_INITIAL; | 1197 | hostlist->quality = HOSTLIST_INITIAL; |
1199 | hostlist_to_test = hostlist; | 1198 | hostlist_to_test = hostlist; |
1200 | 1199 | ||