From b6cbb6f800ef9aeebcfb76a7ba721d4b95a2e2ca Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 26 Jun 2022 15:12:34 +0200 Subject: -fix typos --- src/gnsrecord/gnsrecord_misc.c | 9 ++++++--- src/gnsrecord/gnunet-gnsrecord-tvg.c | 6 +++--- 2 files changed, 9 insertions(+), 6 deletions(-) (limited to 'src/gnsrecord') 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) return GNUNET_STRINGS_utf8_normalize (src); } + enum GNUNET_GenericReturnValue GNUNET_GNSRECORD_label_check (const char*label, char **emsg) { @@ -60,6 +61,7 @@ GNUNET_GNSRECORD_label_check (const char*label, char **emsg) return GNUNET_OK; } + /** * Convert a zone key to a string (for printing debug messages). * 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, } + enum GNUNET_GenericReturnValue GNUNET_GNSRECORD_normalize_record_set (const char *label, const struct @@ -488,7 +491,7 @@ GNUNET_GNSRECORD_normalize_record_set (const char *label, (GNUNET_YES == have_gns2dns)) { *emsg = GNUNET_strdup (_ ( - "Redirection record set conains mutually exclusive records.")); + "Redirection record set contains mutually exclusive records.")); return GNUNET_SYSERR; } /* No redirection records under empty label*/ @@ -514,7 +517,7 @@ GNUNET_GNSRECORD_normalize_record_set (const char *label, (GNUNET_YES == have_zone_delegation)) { *emsg = GNUNET_strdup (_ ( - "Redirection record set conains mutually exclusive records.")); + "Redirection record set contains mutually exclusive records.")); return GNUNET_SYSERR; } have_gns2dns = GNUNET_YES; @@ -557,6 +560,7 @@ GNUNET_GNSRECORD_normalize_record_set (const char *label, return GNUNET_OK; } + enum GNUNET_GenericReturnValue GNUNET_GNSRECORD_convert_records_for_export (const char *label, const struct @@ -580,5 +584,4 @@ GNUNET_GNSRECORD_convert_records_for_export (const char *label, } - /* 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) printf ("\nDATA_SIZE:\n"); print_bytes (&size_nbo, sizeof (size_nbo), 8); printf ("\nTYPE:\n"); - print_bytes(&type_nbo, sizeof (type_nbo), 8); + print_bytes (&type_nbo, sizeof (type_nbo), 8); printf ("\nFLAGS: "); print_bytes ((void*) &flags, sizeof (flags), 8); printf ("\n"); @@ -173,7 +173,7 @@ run_pkey (struct GNUNET_GNSRECORD_Data *rd, int rd_count, const char *label) printf ("Label:\n"); print_bytes (conv_lbl, strlen (conv_lbl), 8); GNUNET_free (conv_lbl); - printf ("\nNumber of records (integer): %d\n\n", rd_count); + printf ("\Number of records (integer): %d\n\n", rd_count); for (int i = 0; i < rd_count; i++) { @@ -300,7 +300,7 @@ run_edkey (struct GNUNET_GNSRECORD_Data *rd, int rd_count, const char*label) print_bytes (conv_lbl, strlen (conv_lbl), 8); GNUNET_free (conv_lbl); fprintf (stdout, - "\nNumber of records (integer): %d\n\n", rd_count); + "\Number of records (integer): %d\n\n", rd_count); for (int i = 0; i < rd_count; i++) { -- cgit v1.2.3