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/namestore/test_namestore_api_remove.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/namestore/test_namestore_api_remove.c')
-rw-r--r-- | src/namestore/test_namestore_api_remove.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/namestore/test_namestore_api_remove.c b/src/namestore/test_namestore_api_remove.c index d1b566659..57bb4a822 100644 --- a/src/namestore/test_namestore_api_remove.c +++ b/src/namestore/test_namestore_api_remove.c | |||
@@ -251,11 +251,11 @@ create_record (int count) | |||
251 | 251 | ||
252 | for (c = 1; c < RECORDS; c++) | 252 | for (c = 1; c < RECORDS; c++) |
253 | { | 253 | { |
254 | rd[c].expiration = GNUNET_TIME_absolute_get_zero(); | 254 | rd[c].expiration = GNUNET_TIME_UNIT_ZERO_ABS; |
255 | rd[c].record_type = TEST_RECORD_TYPE; | 255 | rd[c].record_type = TEST_RECORD_TYPE; |
256 | rd[c].data_size = TEST_RECORD_DATALEN; | 256 | rd[c].data_size = TEST_RECORD_DATALEN; |
257 | rd[c].data = GNUNET_malloc(TEST_RECORD_DATALEN); | 257 | rd[c].data = GNUNET_malloc(TEST_RECORD_DATALEN); |
258 | memset ((char *) rd[c].data, TEST_RECORD_DATA, TEST_RECORD_DATALEN); | 258 | memset ((char *) rd[c].data, TEST_RECORD_DATA, TEST_RECORD_DATALEN); |
259 | } | 259 | } |
260 | 260 | ||
261 | return rd; | 261 | return rd; |
@@ -325,7 +325,7 @@ run (void *cls, char *const *args, const char *cfgfile, | |||
325 | GNUNET_break (s_name != NULL); | 325 | GNUNET_break (s_name != NULL); |
326 | 326 | ||
327 | GNUNET_NAMESTORE_record_put (nsh, &pubkey, s_name, | 327 | GNUNET_NAMESTORE_record_put (nsh, &pubkey, s_name, |
328 | GNUNET_TIME_absolute_get_forever(), | 328 | GNUNET_TIME_UNIT_FOREVER_ABS, |
329 | RECORDS, s_rd, s_signature, put_cont, s_name); | 329 | RECORDS, s_rd, s_signature, put_cont, s_name); |
330 | 330 | ||
331 | 331 | ||