diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-10-16 20:21:27 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-10-16 20:21:27 +0000 |
commit | accfd6bd85274da2f19e7230c8da6b273cfb2ece (patch) | |
tree | 60966194963795ff07b4da94f4efb6c46d6a23cf /src/namestore/test_namestore_api_zone_iteration.c | |
parent | 3d670727232e79b7e49a1df7ba9260db4e5798a0 (diff) | |
download | gnunet-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.c')
-rw-r--r-- | src/namestore/test_namestore_api_zone_iteration.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/namestore/test_namestore_api_zone_iteration.c b/src/namestore/test_namestore_api_zone_iteration.c index d1992309d..92fb43a28 100644 --- a/src/namestore/test_namestore_api_zone_iteration.c +++ b/src/namestore/test_namestore_api_zone_iteration.c | |||
@@ -46,15 +46,15 @@ static int returned_records; | |||
46 | 46 | ||
47 | static char * s_name_1; | 47 | static char * s_name_1; |
48 | 48 | ||
49 | static struct GNUNET_NAMESTORE_RecordData *s_rd_1; | 49 | static struct GNUNET_GNSRECORD_Data *s_rd_1; |
50 | 50 | ||
51 | static char * s_name_2; | 51 | static char * s_name_2; |
52 | 52 | ||
53 | static struct GNUNET_NAMESTORE_RecordData *s_rd_2; | 53 | static struct GNUNET_GNSRECORD_Data *s_rd_2; |
54 | 54 | ||
55 | static char * s_name_3; | 55 | static char * s_name_3; |
56 | 56 | ||
57 | static struct GNUNET_NAMESTORE_RecordData *s_rd_3; | 57 | static 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); |
@@ -231,7 +231,7 @@ zone_proc (void *cls, | |||
231 | { | 231 | { |
232 | if (rd_count == 1) | 232 | if (rd_count == 1) |
233 | { | 233 | { |
234 | if (GNUNET_YES != GNUNET_NAMESTORE_records_cmp(rd, s_rd_3)) | 234 | if (GNUNET_YES != GNUNET_GNSRECORD_records_cmp(rd, s_rd_3)) |
235 | { | 235 | { |
236 | failed = GNUNET_YES; | 236 | failed = GNUNET_YES; |
237 | GNUNET_break (0); | 237 | GNUNET_break (0); |
@@ -319,13 +319,13 @@ put_cont (void *cls, int32_t success, const char *emsg) | |||
319 | } | 319 | } |
320 | 320 | ||
321 | 321 | ||
322 | static struct GNUNET_NAMESTORE_RecordData * | 322 | static struct GNUNET_GNSRECORD_Data * |
323 | create_record (unsigned int count) | 323 | create_record (unsigned int count) |
324 | { | 324 | { |
325 | unsigned int c; | 325 | unsigned int c; |
326 | struct GNUNET_NAMESTORE_RecordData * rd; | 326 | struct GNUNET_GNSRECORD_Data * rd; |
327 | 327 | ||
328 | rd = GNUNET_malloc (count * sizeof (struct GNUNET_NAMESTORE_RecordData)); | 328 | rd = GNUNET_malloc (count * sizeof (struct GNUNET_GNSRECORD_Data)); |
329 | for (c = 0; c < count; c++) | 329 | for (c = 0; c < count; c++) |
330 | { | 330 | { |
331 | rd[c].expiration_time = GNUNET_TIME_relative_to_absolute (GNUNET_TIME_UNIT_HOURS).abs_value_us; | 331 | rd[c].expiration_time = GNUNET_TIME_relative_to_absolute (GNUNET_TIME_UNIT_HOURS).abs_value_us; |
@@ -348,7 +348,7 @@ empty_zone_proc (void *cls, | |||
348 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *zone, | 348 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *zone, |
349 | const char *label, | 349 | const char *label, |
350 | unsigned int rd_count, | 350 | unsigned int rd_count, |
351 | const struct GNUNET_NAMESTORE_RecordData *rd) | 351 | const struct GNUNET_GNSRECORD_Data *rd) |
352 | { | 352 | { |
353 | char *hostkey_file; | 353 | char *hostkey_file; |
354 | 354 | ||