diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-06-29 15:55:08 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-06-29 15:55:08 +0000 |
commit | 20bef67d7b8a216bd2ebaafb30dbb19770e549c2 (patch) | |
tree | 8470bed089ee511e844b726aa0a3171b54aa76fe /src/namestore/test_namestore_api_remove.c | |
parent | b510c934e38ef0eb4ea959af5be94f4490ddb667 (diff) | |
download | gnunet-20bef67d7b8a216bd2ebaafb30dbb19770e549c2.tar.gz gnunet-20bef67d7b8a216bd2ebaafb30dbb19770e549c2.zip |
-more fixes to namestore
Diffstat (limited to 'src/namestore/test_namestore_api_remove.c')
-rw-r--r-- | src/namestore/test_namestore_api_remove.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/namestore/test_namestore_api_remove.c b/src/namestore/test_namestore_api_remove.c index 0ee4e44f7..639ebb3cf 100644 --- a/src/namestore/test_namestore_api_remove.c +++ b/src/namestore/test_namestore_api_remove.c | |||
@@ -220,14 +220,14 @@ create_record (unsigned int count) | |||
220 | struct GNUNET_NAMESTORE_RecordData * rd; | 220 | struct GNUNET_NAMESTORE_RecordData * rd; |
221 | 221 | ||
222 | rd = GNUNET_malloc (count * sizeof (struct GNUNET_NAMESTORE_RecordData)); | 222 | rd = GNUNET_malloc (count * sizeof (struct GNUNET_NAMESTORE_RecordData)); |
223 | rd[0].expiration_time = GNUNET_TIME_absolute_get().abs_value; | 223 | rd[0].expiration_time = GNUNET_TIME_relative_to_absolute (GNUNET_TIME_UNIT_HOURS).abs_value; |
224 | rd[0].record_type = 0; | 224 | rd[0].record_type = 0; |
225 | rd[0].data_size = TEST_REMOVE_RECORD_DATALEN; | 225 | rd[0].data_size = TEST_REMOVE_RECORD_DATALEN; |
226 | rd[0].data = GNUNET_malloc(TEST_REMOVE_RECORD_DATALEN); | 226 | rd[0].data = GNUNET_malloc(TEST_REMOVE_RECORD_DATALEN); |
227 | memset ((char *) rd[0].data, TEST_RECORD_DATA, TEST_RECORD_DATALEN); | 227 | memset ((char *) rd[0].data, TEST_RECORD_DATA, TEST_RECORD_DATALEN); |
228 | for (c = 1; c < count; c++) | 228 | for (c = 1; c < count; c++) |
229 | { | 229 | { |
230 | rd[c].expiration_time = 0; | 230 | rd[c].expiration_time = GNUNET_TIME_relative_to_absolute (GNUNET_TIME_UNIT_HOURS).abs_value; |
231 | rd[c].record_type = TEST_RECORD_TYPE; | 231 | rd[c].record_type = TEST_RECORD_TYPE; |
232 | rd[c].data_size = TEST_RECORD_DATALEN; | 232 | rd[c].data_size = TEST_RECORD_DATALEN; |
233 | rd[c].data = GNUNET_malloc(TEST_RECORD_DATALEN); | 233 | rd[c].data = GNUNET_malloc(TEST_RECORD_DATALEN); |