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/gns/plugin_block_gns.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/gns/plugin_block_gns.c')
-rw-r--r-- | src/gns/plugin_block_gns.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gns/plugin_block_gns.c b/src/gns/plugin_block_gns.c index dc92f6aec..5d986ce98 100644 --- a/src/gns/plugin_block_gns.c +++ b/src/gns/plugin_block_gns.c | |||
@@ -135,7 +135,7 @@ block_plugin_gns_evaluate (void *cls, enum GNUNET_BLOCK_Type type, | |||
135 | { | 135 | { |
136 | struct GNUNET_NAMESTORE_RecordData rd[rd_count]; | 136 | struct GNUNET_NAMESTORE_RecordData rd[rd_count]; |
137 | unsigned int i; | 137 | unsigned int i; |
138 | struct GNUNET_TIME_Absolute exp = GNUNET_TIME_absolute_get_forever(); | 138 | struct GNUNET_TIME_Absolute exp = GNUNET_TIME_UNIT_FOREVER_ABS; |
139 | 139 | ||
140 | if (GNUNET_SYSERR == GNUNET_NAMESTORE_records_deserialize (rd_len, | 140 | if (GNUNET_SYSERR == GNUNET_NAMESTORE_records_deserialize (rd_len, |
141 | rd_data, | 141 | rd_data, |