aboutsummaryrefslogtreecommitdiff
path: root/src/gns/test_gns_simple_mx_lookup.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-08-13 17:10:07 +0000
committerChristian Grothoff <christian@grothoff.org>2013-08-13 17:10:07 +0000
commitbfbbb1e8700093783da55c84221fc688eee4c9a0 (patch)
tree83693440965fff521bc21af1debf963b95d77471 /src/gns/test_gns_simple_mx_lookup.c
parentee32003b7e606767f9b89715cb956d863fe067d9 (diff)
downloadgnunet-bfbbb1e8700093783da55c84221fc688eee4c9a0.tar.gz
gnunet-bfbbb1e8700093783da55c84221fc688eee4c9a0.zip
-getting rid of duplication of record type values / enum GNUNET_GNS_RecordType
Diffstat (limited to 'src/gns/test_gns_simple_mx_lookup.c')
-rw-r--r--src/gns/test_gns_simple_mx_lookup.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gns/test_gns_simple_mx_lookup.c b/src/gns/test_gns_simple_mx_lookup.c
index b078edc4f..a6839e549 100644
--- a/src/gns/test_gns_simple_mx_lookup.c
+++ b/src/gns/test_gns_simple_mx_lookup.c
@@ -131,7 +131,7 @@ on_lookup_result(void *cls, uint32_t rd_count,
131 for (i=0; i<rd_count; i++) 131 for (i=0; i<rd_count; i++)
132 { 132 {
133 GNUNET_log (GNUNET_ERROR_TYPE_INFO, "type: %d\n", rd[i].record_type); 133 GNUNET_log (GNUNET_ERROR_TYPE_INFO, "type: %d\n", rd[i].record_type);
134 if (rd[i].record_type == GNUNET_GNS_RECORD_MX) 134 if (rd[i].record_type == GNUNET_DNSPARSER_TYPE_MX)
135 { 135 {
136 mx = (char*)rd[i].data+sizeof(uint16_t); 136 mx = (char*)rd[i].data+sizeof(uint16_t);
137 mx_preference = *(uint16_t*)rd[i].data; 137 mx_preference = *(uint16_t*)rd[i].data;
@@ -168,7 +168,7 @@ commence_testing (void *cls, int32_t success, const char *emsg)
168 end_badly_now(); 168 end_badly_now();
169 return; 169 return;
170 } 170 }
171 GNUNET_GNS_lookup(gns_handle, TEST_DOMAIN, GNUNET_GNS_RECORD_MX, 171 GNUNET_GNS_lookup(gns_handle, TEST_DOMAIN, GNUNET_DNSPARSER_TYPE_MX,
172 GNUNET_NO, 172 GNUNET_NO,
173 NULL, 173 NULL,
174 &on_lookup_result, TEST_DOMAIN); 174 &on_lookup_result, TEST_DOMAIN);
@@ -228,7 +228,7 @@ do_check (void *cls,
228 228
229 rd.data_size = sizeof(struct GNUNET_CRYPTO_ShortHashCode); 229 rd.data_size = sizeof(struct GNUNET_CRYPTO_ShortHashCode);
230 rd.data = &bob_hash; 230 rd.data = &bob_hash;
231 rd.record_type = GNUNET_GNS_RECORD_PKEY; 231 rd.record_type = GNUNET_NAMESTORE_TYPE_PKEY;
232 rd.flags = GNUNET_NAMESTORE_RF_AUTHORITY; 232 rd.flags = GNUNET_NAMESTORE_RF_AUTHORITY;
233 233
234 GNUNET_NAMESTORE_record_put_by_authority (namestore_handle, 234 GNUNET_NAMESTORE_record_put_by_authority (namestore_handle,
@@ -262,7 +262,7 @@ do_check (void *cls,
262 memcpy(mx_record, &mx_preference, sizeof(uint16_t)); 262 memcpy(mx_record, &mx_preference, sizeof(uint16_t));
263 strcpy(mx_record+sizeof(uint16_t), TEST_MX_NAME); 263 strcpy(mx_record+sizeof(uint16_t), TEST_MX_NAME);
264 rd.data = mx_record; 264 rd.data = mx_record;
265 rd.record_type = GNUNET_GNS_RECORD_MX; 265 rd.record_type = GNUNET_DNSPARSER_TYPE_MX;
266 sig = GNUNET_NAMESTORE_create_signature(bob_key, 266 sig = GNUNET_NAMESTORE_create_signature(bob_key,
267 GNUNET_TIME_UNIT_FOREVER_ABS, 267 GNUNET_TIME_UNIT_FOREVER_ABS,
268 GNUNET_GNS_MASTERZONE_STR, 268 GNUNET_GNS_MASTERZONE_STR,