aboutsummaryrefslogtreecommitdiff
path: root/src/gnsrecord
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-06-26 15:12:34 +0200
committerChristian Grothoff <christian@grothoff.org>2022-06-26 15:12:34 +0200
commitb6cbb6f800ef9aeebcfb76a7ba721d4b95a2e2ca (patch)
treec493c4495db597a0382c32f67837cfac23b9ddcf /src/gnsrecord
parent4644e3ae1def4f43a24bc76f5dacc3dd94807126 (diff)
downloadgnunet-b6cbb6f800ef9aeebcfb76a7ba721d4b95a2e2ca.tar.gz
gnunet-b6cbb6f800ef9aeebcfb76a7ba721d4b95a2e2ca.zip
-fix typos
Diffstat (limited to 'src/gnsrecord')
-rw-r--r--src/gnsrecord/gnsrecord_misc.c9
-rw-r--r--src/gnsrecord/gnunet-gnsrecord-tvg.c6
2 files changed, 9 insertions, 6 deletions
diff --git a/src/gnsrecord/gnsrecord_misc.c b/src/gnsrecord/gnsrecord_misc.c
index 54d8fb860..5e3bbdb8c 100644
--- a/src/gnsrecord/gnsrecord_misc.c
+++ b/src/gnsrecord/gnsrecord_misc.c
@@ -44,6 +44,7 @@ GNUNET_GNSRECORD_string_normalize (const char *src)
44 return GNUNET_STRINGS_utf8_normalize (src); 44 return GNUNET_STRINGS_utf8_normalize (src);
45} 45}
46 46
47
47enum GNUNET_GenericReturnValue 48enum GNUNET_GenericReturnValue
48GNUNET_GNSRECORD_label_check (const char*label, char **emsg) 49GNUNET_GNSRECORD_label_check (const char*label, char **emsg)
49{ 50{
@@ -60,6 +61,7 @@ GNUNET_GNSRECORD_label_check (const char*label, char **emsg)
60 return GNUNET_OK; 61 return GNUNET_OK;
61} 62}
62 63
64
63/** 65/**
64 * Convert a zone key to a string (for printing debug messages). 66 * Convert a zone key to a string (for printing debug messages).
65 * This is one of the very few calls in the entire API that is 67 * This is one of the very few calls in the entire API that is
@@ -409,6 +411,7 @@ GNUNET_GNSRECORD_record_to_identity_key (const struct GNUNET_GNSRECORD_Data *rd,
409 411
410} 412}
411 413
414
412enum GNUNET_GenericReturnValue 415enum GNUNET_GenericReturnValue
413GNUNET_GNSRECORD_normalize_record_set (const char *label, 416GNUNET_GNSRECORD_normalize_record_set (const char *label,
414 const struct 417 const struct
@@ -488,7 +491,7 @@ GNUNET_GNSRECORD_normalize_record_set (const char *label,
488 (GNUNET_YES == have_gns2dns)) 491 (GNUNET_YES == have_gns2dns))
489 { 492 {
490 *emsg = GNUNET_strdup (_ ( 493 *emsg = GNUNET_strdup (_ (
491 "Redirection record set conains mutually exclusive records.")); 494 "Redirection record set contains mutually exclusive records."));
492 return GNUNET_SYSERR; 495 return GNUNET_SYSERR;
493 } 496 }
494 /* No redirection records under empty label*/ 497 /* No redirection records under empty label*/
@@ -514,7 +517,7 @@ GNUNET_GNSRECORD_normalize_record_set (const char *label,
514 (GNUNET_YES == have_zone_delegation)) 517 (GNUNET_YES == have_zone_delegation))
515 { 518 {
516 *emsg = GNUNET_strdup (_ ( 519 *emsg = GNUNET_strdup (_ (
517 "Redirection record set conains mutually exclusive records.")); 520 "Redirection record set contains mutually exclusive records."));
518 return GNUNET_SYSERR; 521 return GNUNET_SYSERR;
519 } 522 }
520 have_gns2dns = GNUNET_YES; 523 have_gns2dns = GNUNET_YES;
@@ -557,6 +560,7 @@ GNUNET_GNSRECORD_normalize_record_set (const char *label,
557 return GNUNET_OK; 560 return GNUNET_OK;
558} 561}
559 562
563
560enum GNUNET_GenericReturnValue 564enum GNUNET_GenericReturnValue
561GNUNET_GNSRECORD_convert_records_for_export (const char *label, 565GNUNET_GNSRECORD_convert_records_for_export (const char *label,
562 const struct 566 const struct
@@ -580,5 +584,4 @@ GNUNET_GNSRECORD_convert_records_for_export (const char *label,
580} 584}
581 585
582 586
583
584/* end of gnsrecord_misc.c */ 587/* end of gnsrecord_misc.c */
diff --git a/src/gnsrecord/gnunet-gnsrecord-tvg.c b/src/gnsrecord/gnunet-gnsrecord-tvg.c
index 7fef6f8e7..d45b3a5d8 100644
--- a/src/gnsrecord/gnunet-gnsrecord-tvg.c
+++ b/src/gnsrecord/gnunet-gnsrecord-tvg.c
@@ -104,7 +104,7 @@ print_record (const struct GNUNET_GNSRECORD_Data *rd)
104 printf ("\nDATA_SIZE:\n"); 104 printf ("\nDATA_SIZE:\n");
105 print_bytes (&size_nbo, sizeof (size_nbo), 8); 105 print_bytes (&size_nbo, sizeof (size_nbo), 8);
106 printf ("\nTYPE:\n"); 106 printf ("\nTYPE:\n");
107 print_bytes(&type_nbo, sizeof (type_nbo), 8); 107 print_bytes (&type_nbo, sizeof (type_nbo), 8);
108 printf ("\nFLAGS: "); 108 printf ("\nFLAGS: ");
109 print_bytes ((void*) &flags, sizeof (flags), 8); 109 print_bytes ((void*) &flags, sizeof (flags), 8);
110 printf ("\n"); 110 printf ("\n");
@@ -173,7 +173,7 @@ run_pkey (struct GNUNET_GNSRECORD_Data *rd, int rd_count, const char *label)
173 printf ("Label:\n"); 173 printf ("Label:\n");
174 print_bytes (conv_lbl, strlen (conv_lbl), 8); 174 print_bytes (conv_lbl, strlen (conv_lbl), 8);
175 GNUNET_free (conv_lbl); 175 GNUNET_free (conv_lbl);
176 printf ("\nNumber of records (integer): %d\n\n", rd_count); 176 printf ("\Number of records (integer): %d\n\n", rd_count);
177 177
178 for (int i = 0; i < rd_count; i++) 178 for (int i = 0; i < rd_count; i++)
179 { 179 {
@@ -300,7 +300,7 @@ run_edkey (struct GNUNET_GNSRECORD_Data *rd, int rd_count, const char*label)
300 print_bytes (conv_lbl, strlen (conv_lbl), 8); 300 print_bytes (conv_lbl, strlen (conv_lbl), 8);
301 GNUNET_free (conv_lbl); 301 GNUNET_free (conv_lbl);
302 fprintf (stdout, 302 fprintf (stdout,
303 "\nNumber of records (integer): %d\n\n", rd_count); 303 "\Number of records (integer): %d\n\n", rd_count);
304 304
305 for (int i = 0; i < rd_count; i++) 305 for (int i = 0; i < rd_count; i++)
306 { 306 {