aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/test_namestore_api_zone_iteration_stop.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_stop.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_stop.c')
-rw-r--r--src/namestore/test_namestore_api_zone_iteration_stop.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/namestore/test_namestore_api_zone_iteration_stop.c b/src/namestore/test_namestore_api_zone_iteration_stop.c
index 7b6824727..f7fd4203d 100644
--- a/src/namestore/test_namestore_api_zone_iteration_stop.c
+++ b/src/namestore/test_namestore_api_zone_iteration_stop.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))
@@ -184,7 +184,7 @@ zone_proc (void *cls,
184 { 184 {
185 if (rd_count == 1) 185 if (rd_count == 1)
186 { 186 {
187 if (GNUNET_YES != GNUNET_NAMESTORE_records_cmp(rd, s_rd_1)) 187 if (GNUNET_YES != GNUNET_GNSRECORD_records_cmp(rd, s_rd_1))
188 { 188 {
189 failed = GNUNET_YES; 189 failed = GNUNET_YES;
190 GNUNET_break (0); 190 GNUNET_break (0);
@@ -200,7 +200,7 @@ zone_proc (void *cls,
200 { 200 {
201 if (rd_count == 1) 201 if (rd_count == 1)
202 { 202 {
203 if (GNUNET_YES != GNUNET_NAMESTORE_records_cmp(rd, s_rd_2)) 203 if (GNUNET_YES != GNUNET_GNSRECORD_records_cmp(rd, s_rd_2))
204 { 204 {
205 failed = GNUNET_YES; 205 failed = GNUNET_YES;
206 GNUNET_break (0); 206 GNUNET_break (0);
@@ -228,7 +228,7 @@ zone_proc (void *cls,
228 { 228 {
229 if (rd_count == 1) 229 if (rd_count == 1)
230 { 230 {
231 if (GNUNET_YES != GNUNET_NAMESTORE_records_cmp(rd, s_rd_3)) 231 if (GNUNET_YES != GNUNET_GNSRECORD_records_cmp(rd, s_rd_3))
232 { 232 {
233 failed = GNUNET_YES; 233 failed = GNUNET_YES;
234 GNUNET_break (0); 234 GNUNET_break (0);
@@ -331,13 +331,13 @@ put_cont (void *cls, int32_t success, const char *emsg)
331} 331}
332 332
333 333
334static struct GNUNET_NAMESTORE_RecordData * 334static struct GNUNET_GNSRECORD_Data *
335create_record (unsigned int count) 335create_record (unsigned int count)
336{ 336{
337 unsigned int c; 337 unsigned int c;
338 struct GNUNET_NAMESTORE_RecordData * rd; 338 struct GNUNET_GNSRECORD_Data * rd;
339 339
340 rd = GNUNET_malloc (count * sizeof (struct GNUNET_NAMESTORE_RecordData)); 340 rd = GNUNET_malloc (count * sizeof (struct GNUNET_GNSRECORD_Data));
341 for (c = 0; c < count; c++) 341 for (c = 0; c < count; c++)
342 { 342 {
343 rd[c].expiration_time = GNUNET_TIME_relative_to_absolute (GNUNET_TIME_UNIT_HOURS).abs_value_us; 343 rd[c].expiration_time = GNUNET_TIME_relative_to_absolute (GNUNET_TIME_UNIT_HOURS).abs_value_us;
@@ -360,7 +360,7 @@ empty_zone_proc (void *cls,
360 const struct GNUNET_CRYPTO_EcdsaPrivateKey *zone, 360 const struct GNUNET_CRYPTO_EcdsaPrivateKey *zone,
361 const char *label, 361 const char *label,
362 unsigned int rd_count, 362 unsigned int rd_count,
363 const struct GNUNET_NAMESTORE_RecordData *rd) 363 const struct GNUNET_GNSRECORD_Data *rd)
364{ 364{
365 char *hostkey_file; 365 char *hostkey_file;
366 366