aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/test_namestore_api_zone_iteration_specific_zone.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-10-16 20:21:27 +0000
committerChristian Grothoff <christian@grothoff.org>2013-10-16 20:21:27 +0000
commitaccfd6bd85274da2f19e7230c8da6b273cfb2ece (patch)
tree60966194963795ff07b4da94f4efb6c46d6a23cf /src/namestore/test_namestore_api_zone_iteration_specific_zone.c
parent3d670727232e79b7e49a1df7ba9260db4e5798a0 (diff)
downloadgnunet-accfd6bd85274da2f19e7230c8da6b273cfb2ece.tar.gz
gnunet-accfd6bd85274da2f19e7230c8da6b273cfb2ece.zip
-another renaming fest for GNUNET_NAMESTORE_ to GNUNET_GNSRECORD_ symbols that were moved
Diffstat (limited to 'src/namestore/test_namestore_api_zone_iteration_specific_zone.c')
-rw-r--r--src/namestore/test_namestore_api_zone_iteration_specific_zone.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/namestore/test_namestore_api_zone_iteration_specific_zone.c b/src/namestore/test_namestore_api_zone_iteration_specific_zone.c
index 858b724a5..1554d5673 100644
--- a/src/namestore/test_namestore_api_zone_iteration_specific_zone.c
+++ b/src/namestore/test_namestore_api_zone_iteration_specific_zone.c
@@ -46,15 +46,15 @@ static int returned_records;
46 46
47static char * s_name_1; 47static char * s_name_1;
48 48
49static struct GNUNET_NAMESTORE_RecordData *s_rd_1; 49static struct GNUNET_GNSRECORD_Data *s_rd_1;
50 50
51static char * s_name_2; 51static char * s_name_2;
52 52
53static struct GNUNET_NAMESTORE_RecordData *s_rd_2; 53static struct GNUNET_GNSRECORD_Data *s_rd_2;
54 54
55static char * s_name_3; 55static char * s_name_3;
56 56
57static struct GNUNET_NAMESTORE_RecordData *s_rd_3; 57static struct GNUNET_GNSRECORD_Data *s_rd_3;
58 58
59 59
60/** 60/**
@@ -159,7 +159,7 @@ zone_proc (void *cls,
159 const struct GNUNET_CRYPTO_EcdsaPrivateKey *zone, 159 const struct GNUNET_CRYPTO_EcdsaPrivateKey *zone,
160 const char *label, 160 const char *label,
161 unsigned int rd_count, 161 unsigned int rd_count,
162 const struct GNUNET_NAMESTORE_RecordData *rd) 162 const struct GNUNET_GNSRECORD_Data *rd)
163{ 163{
164 int failed = GNUNET_NO; 164 int failed = GNUNET_NO;
165 if ((zone == NULL) && (label == NULL)) 165 if ((zone == NULL) && (label == NULL))
@@ -187,7 +187,7 @@ zone_proc (void *cls,
187 { 187 {
188 if (rd_count == 1) 188 if (rd_count == 1)
189 { 189 {
190 if (GNUNET_YES != GNUNET_NAMESTORE_records_cmp(rd, s_rd_1)) 190 if (GNUNET_YES != GNUNET_GNSRECORD_records_cmp(rd, s_rd_1))
191 { 191 {
192 failed = GNUNET_YES; 192 failed = GNUNET_YES;
193 GNUNET_break (0); 193 GNUNET_break (0);
@@ -203,7 +203,7 @@ zone_proc (void *cls,
203 { 203 {
204 if (rd_count == 1) 204 if (rd_count == 1)
205 { 205 {
206 if (GNUNET_YES != GNUNET_NAMESTORE_records_cmp(rd, s_rd_2)) 206 if (GNUNET_YES != GNUNET_GNSRECORD_records_cmp(rd, s_rd_2))
207 { 207 {
208 failed = GNUNET_YES; 208 failed = GNUNET_YES;
209 GNUNET_break (0); 209 GNUNET_break (0);
@@ -297,13 +297,13 @@ put_cont (void *cls, int32_t success, const char *emsg)
297} 297}
298 298
299 299
300static struct GNUNET_NAMESTORE_RecordData * 300static struct GNUNET_GNSRECORD_Data *
301create_record (unsigned int count) 301create_record (unsigned int count)
302{ 302{
303 unsigned int c; 303 unsigned int c;
304 struct GNUNET_NAMESTORE_RecordData * rd; 304 struct GNUNET_GNSRECORD_Data * rd;
305 305
306 rd = GNUNET_malloc (count * sizeof (struct GNUNET_NAMESTORE_RecordData)); 306 rd = GNUNET_malloc (count * sizeof (struct GNUNET_GNSRECORD_Data));
307 for (c = 0; c < count; c++) 307 for (c = 0; c < count; c++)
308 { 308 {
309 rd[c].expiration_time = GNUNET_TIME_relative_to_absolute (GNUNET_TIME_UNIT_HOURS).abs_value_us; 309 rd[c].expiration_time = GNUNET_TIME_relative_to_absolute (GNUNET_TIME_UNIT_HOURS).abs_value_us;
@@ -326,7 +326,7 @@ empty_zone_proc (void *cls,
326 const struct GNUNET_CRYPTO_EcdsaPrivateKey *zone, 326 const struct GNUNET_CRYPTO_EcdsaPrivateKey *zone,
327 const char *label, 327 const char *label,
328 unsigned int rd_count, 328 unsigned int rd_count,
329 const struct GNUNET_NAMESTORE_RecordData *rd) 329 const struct GNUNET_GNSRECORD_Data *rd)
330{ 330{
331 char *hostkey_file; 331 char *hostkey_file;
332 332