diff options
Diffstat (limited to 'src/gns/test_gns_dht_delegated_lookup.c')
-rw-r--r-- | src/gns/test_gns_dht_delegated_lookup.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gns/test_gns_dht_delegated_lookup.c b/src/gns/test_gns_dht_delegated_lookup.c index b27c5ec33..882bb7e5e 100644 --- a/src/gns/test_gns_dht_delegated_lookup.c +++ b/src/gns/test_gns_dht_delegated_lookup.c | |||
@@ -211,13 +211,13 @@ put_dht(void *cls, int32_t success, const char *emsg) | |||
211 | char* ip = TEST_IP; | 211 | char* ip = TEST_IP; |
212 | struct in_addr *web = GNUNET_malloc(sizeof(struct in_addr)); | 212 | struct in_addr *web = GNUNET_malloc(sizeof(struct in_addr)); |
213 | 213 | ||
214 | rd.expiration = GNUNET_TIME_absolute_get_forever (); | 214 | rd.expiration = GNUNET_TIME_UNIT_FOREVER_ABS; |
215 | GNUNET_assert(1 == inet_pton (AF_INET, ip, web)); | 215 | GNUNET_assert(1 == inet_pton (AF_INET, ip, web)); |
216 | rd.data_size = sizeof(struct in_addr); | 216 | rd.data_size = sizeof(struct in_addr); |
217 | rd.data = web; | 217 | rd.data = web; |
218 | rd.record_type = GNUNET_DNSPARSER_TYPE_A; | 218 | rd.record_type = GNUNET_DNSPARSER_TYPE_A; |
219 | 219 | ||
220 | sig = GNUNET_NAMESTORE_create_signature(bob_key, GNUNET_TIME_absolute_get_forever(), TEST_RECORD_NAME, | 220 | sig = GNUNET_NAMESTORE_create_signature(bob_key, GNUNET_TIME_UNIT_FOREVER_ABS, TEST_RECORD_NAME, |
221 | &rd, 1); | 221 | &rd, 1); |
222 | rd_payload_length = GNUNET_NAMESTORE_records_get_size (1, &rd); | 222 | rd_payload_length = GNUNET_NAMESTORE_records_get_size (1, &rd); |
223 | nrb = GNUNET_malloc(rd_payload_length + strlen(TEST_RECORD_NAME) + 1 | 223 | nrb = GNUNET_malloc(rd_payload_length + strlen(TEST_RECORD_NAME) + 1 |
@@ -315,7 +315,7 @@ do_lookup(void *cls, const struct GNUNET_PeerIdentity *id, | |||
315 | GNUNET_CRYPTO_short_hash(&bob_pkey, sizeof(bob_pkey), &bob_hash); | 315 | GNUNET_CRYPTO_short_hash(&bob_pkey, sizeof(bob_pkey), &bob_hash); |
316 | 316 | ||
317 | struct GNUNET_NAMESTORE_RecordData rd; | 317 | struct GNUNET_NAMESTORE_RecordData rd; |
318 | rd.expiration = GNUNET_TIME_absolute_get_forever (); | 318 | rd.expiration = GNUNET_TIME_UNIT_FOREVER_ABS; |
319 | rd.data_size = sizeof(struct GNUNET_CRYPTO_ShortHashCode); | 319 | rd.data_size = sizeof(struct GNUNET_CRYPTO_ShortHashCode); |
320 | rd.data = &bob_hash; | 320 | rd.data = &bob_hash; |
321 | rd.record_type = GNUNET_GNS_RECORD_PKEY; | 321 | rd.record_type = GNUNET_GNS_RECORD_PKEY; |