aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/test_namestore_api_put.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/namestore/test_namestore_api_put.c')
-rw-r--r--src/namestore/test_namestore_api_put.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/namestore/test_namestore_api_put.c b/src/namestore/test_namestore_api_put.c
index ff99b60f9..ccbe8eefe 100644
--- a/src/namestore/test_namestore_api_put.c
+++ b/src/namestore/test_namestore_api_put.c
@@ -121,7 +121,7 @@ create_record (unsigned int count)
121 rd = GNUNET_malloc (count * sizeof (struct GNUNET_NAMESTORE_RecordData)); 121 rd = GNUNET_malloc (count * sizeof (struct GNUNET_NAMESTORE_RecordData));
122 for (c = 0; c < count; c++) 122 for (c = 0; c < count; c++)
123 { 123 {
124 rd[c].expiration_time = GNUNET_TIME_absolute_get().abs_value; 124 rd[c].expiration_time = GNUNET_TIME_absolute_get().abs_value_us;
125 rd[c].record_type = TEST_RECORD_TYPE; 125 rd[c].record_type = TEST_RECORD_TYPE;
126 rd[c].data_size = TEST_RECORD_DATALEN; 126 rd[c].data_size = TEST_RECORD_DATALEN;
127 rd[c].data = GNUNET_malloc(TEST_RECORD_DATALEN); 127 rd[c].data = GNUNET_malloc(TEST_RECORD_DATALEN);
@@ -157,7 +157,7 @@ run (void *cls,
157 /* create record */ 157 /* create record */
158 s_name = GNUNET_NAMESTORE_normalize_string ("DUMMY.dummy.gnunet"); 158 s_name = GNUNET_NAMESTORE_normalize_string ("DUMMY.dummy.gnunet");
159 s_rd = create_record (RECORDS); 159 s_rd = create_record (RECORDS);
160 et.abs_value = s_rd[0].expiration_time; 160 et.abs_value_us = s_rd[0].expiration_time;
161 signature = GNUNET_NAMESTORE_create_signature(privkey, et, s_name, s_rd, RECORDS); 161 signature = GNUNET_NAMESTORE_create_signature(privkey, et, s_name, s_rd, RECORDS);
162 GNUNET_break (s_rd != NULL); 162 GNUNET_break (s_rd != NULL);
163 GNUNET_break (s_name != NULL); 163 GNUNET_break (s_name != NULL);