aboutsummaryrefslogtreecommitdiff
path: root/src/gns/test_gns_dht_delegated_lookup.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-06-19 22:23:33 +0000
committerChristian Grothoff <christian@grothoff.org>2012-06-19 22:23:33 +0000
commitbde779e2145a9888ada3c0a52f78c4095b8c7ed2 (patch)
treeb1e40a90e9c8701343840ebffc81d5d631ff4c50 /src/gns/test_gns_dht_delegated_lookup.c
parent808ef8ab410b486c5cca7515389f608e965d53b1 (diff)
downloadgnunet-bde779e2145a9888ada3c0a52f78c4095b8c7ed2.tar.gz
gnunet-bde779e2145a9888ada3c0a52f78c4095b8c7ed2.zip
-fixing some testcase builds
Diffstat (limited to 'src/gns/test_gns_dht_delegated_lookup.c')
-rw-r--r--src/gns/test_gns_dht_delegated_lookup.c6
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 07fa9f246..e7f2ea060 100644
--- a/src/gns/test_gns_dht_delegated_lookup.c
+++ b/src/gns/test_gns_dht_delegated_lookup.c
@@ -213,7 +213,7 @@ put_dht(void *cls, int32_t success, const char *emsg)
213 char* ip = TEST_IP; 213 char* ip = TEST_IP;
214 struct in_addr *web = GNUNET_malloc(sizeof(struct in_addr)); 214 struct in_addr *web = GNUNET_malloc(sizeof(struct in_addr));
215 215
216 rd.expiration = GNUNET_TIME_UNIT_FOREVER_ABS; 216 rd.expiration_time = UINT64_MAX;
217 GNUNET_assert(1 == inet_pton (AF_INET, ip, web)); 217 GNUNET_assert(1 == inet_pton (AF_INET, ip, web));
218 rd.data_size = sizeof(struct in_addr); 218 rd.data_size = sizeof(struct in_addr);
219 rd.data = web; 219 rd.data = web;
@@ -258,7 +258,7 @@ put_dht(void *cls, int32_t success, const char *emsg)
258 GNUNET_BLOCK_TYPE_GNS_NAMERECORD, 258 GNUNET_BLOCK_TYPE_GNS_NAMERECORD,
259 rd_payload_length, 259 rd_payload_length,
260 (char*)nrb, 260 (char*)nrb,
261 rd.expiration, 261 GNUNET_TIME_UNIT_FOREVER_ABS,
262 DHT_OPERATION_TIMEOUT, 262 DHT_OPERATION_TIMEOUT,
263 NULL, 263 NULL,
264 NULL); 264 NULL);
@@ -317,7 +317,7 @@ do_lookup(void *cls, const struct GNUNET_PeerIdentity *id,
317 GNUNET_CRYPTO_short_hash(&bob_pkey, sizeof(bob_pkey), &bob_hash); 317 GNUNET_CRYPTO_short_hash(&bob_pkey, sizeof(bob_pkey), &bob_hash);
318 318
319 struct GNUNET_NAMESTORE_RecordData rd; 319 struct GNUNET_NAMESTORE_RecordData rd;
320 rd.expiration = GNUNET_TIME_UNIT_FOREVER_ABS; 320 rd.expiration_time = UINT64_MAX;
321 rd.data_size = sizeof(struct GNUNET_CRYPTO_ShortHashCode); 321 rd.data_size = sizeof(struct GNUNET_CRYPTO_ShortHashCode);
322 rd.data = &bob_hash; 322 rd.data = &bob_hash;
323 rd.record_type = GNUNET_GNS_RECORD_PKEY; 323 rd.record_type = GNUNET_GNS_RECORD_PKEY;