diff options
Diffstat (limited to 'src/namestore/test_namestore_api_lookup_specific_type.c')
-rw-r--r-- | src/namestore/test_namestore_api_lookup_specific_type.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/namestore/test_namestore_api_lookup_specific_type.c b/src/namestore/test_namestore_api_lookup_specific_type.c index 28632c83f..1d084dbc1 100644 --- a/src/namestore/test_namestore_api_lookup_specific_type.c +++ b/src/namestore/test_namestore_api_lookup_specific_type.c | |||
@@ -250,13 +250,13 @@ create_record (unsigned int count) | |||
250 | rd = GNUNET_malloc (count * sizeof (struct GNUNET_NAMESTORE_RecordData)); | 250 | rd = GNUNET_malloc (count * sizeof (struct GNUNET_NAMESTORE_RecordData)); |
251 | for (c = 0; c < count-1; c++) | 251 | for (c = 0; c < count-1; c++) |
252 | { | 252 | { |
253 | rd[c].expiration_time = GNUNET_TIME_relative_to_absolute (GNUNET_TIME_UNIT_HOURS).abs_value; | 253 | rd[c].expiration_time = GNUNET_TIME_relative_to_absolute (GNUNET_TIME_UNIT_HOURS).abs_value_us; |
254 | rd[c].record_type = 1; | 254 | rd[c].record_type = 1; |
255 | rd[c].data_size = TEST_RECORD_DATALEN; | 255 | rd[c].data_size = TEST_RECORD_DATALEN; |
256 | rd[c].data = GNUNET_malloc(TEST_RECORD_DATALEN); | 256 | rd[c].data = GNUNET_malloc(TEST_RECORD_DATALEN); |
257 | memset ((char *) rd[c].data, TEST_RECORD_DATA, TEST_RECORD_DATALEN); | 257 | memset ((char *) rd[c].data, TEST_RECORD_DATA, TEST_RECORD_DATALEN); |
258 | } | 258 | } |
259 | rd[c].expiration_time = GNUNET_TIME_relative_to_absolute (GNUNET_TIME_UNIT_HOURS).abs_value; | 259 | rd[c].expiration_time = GNUNET_TIME_relative_to_absolute (GNUNET_TIME_UNIT_HOURS).abs_value_us; |
260 | rd[c].record_type = TEST_RECORD_LOOKUP_TYPE_EXISTING; | 260 | rd[c].record_type = TEST_RECORD_LOOKUP_TYPE_EXISTING; |
261 | rd[c].data_size = TEST_RECORD_DATALEN; | 261 | rd[c].data_size = TEST_RECORD_DATALEN; |
262 | rd[c].data = GNUNET_malloc(TEST_RECORD_DATALEN); | 262 | rd[c].data = GNUNET_malloc(TEST_RECORD_DATALEN); |
@@ -296,7 +296,7 @@ run (void *cls, | |||
296 | GNUNET_NAMESTORE_records_serialize(RECORDS, s_rd, rd_ser_len, rd_ser); | 296 | GNUNET_NAMESTORE_records_serialize(RECORDS, s_rd, rd_ser_len, rd_ser); |
297 | 297 | ||
298 | /* sign */ | 298 | /* sign */ |
299 | et.abs_value = s_rd[RECORDS - 1].expiration_time; | 299 | et.abs_value_us = s_rd[RECORDS - 1].expiration_time; |
300 | s_signature = GNUNET_NAMESTORE_create_signature(privkey, et, s_name, s_rd, RECORDS); | 300 | s_signature = GNUNET_NAMESTORE_create_signature(privkey, et, s_name, s_rd, RECORDS); |
301 | 301 | ||
302 | /* create random zone hash */ | 302 | /* create random zone hash */ |