[PATCH 01/12] debuginfod: fix spelling typos in error diagnostics and comments

Dmitry V. Levin ldv@altlinux.org
Sat Dec 12 16:50:12 GMT 2020


Initalize -> Initialize
Unsucessful -> Unsuccessful
expession -> expression
incompatiblity -> incompatibility

Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
---
 debuginfod/ChangeLog           | 7 +++++++
 debuginfod/debuginfod-client.c | 4 ++--
 debuginfod/debuginfod.cxx      | 6 +++---
 3 files changed, 12 insertions(+), 5 deletions(-)

diff --git a/debuginfod/ChangeLog b/debuginfod/ChangeLog
index 0a7e458f..379af287 100644
--- a/debuginfod/ChangeLog
+++ b/debuginfod/ChangeLog
@@ -1,3 +1,10 @@
+2020-12-12  Dmitry V. Levin  <ldv@altlinux.org>
+
+	* debuginfod-client.c (debuginfod_query_server): Fix spelling typos in
+	comments.
+	* debuginfod.cxx: Likewise.
+	(parse_opt): Fix spelling typos in error diagnostics.
+
 2020-12-08  Dmitry V. Levin  <ldv@altlinux.org>
 
 	* Makefile.am [LIBDEBUGINFOD]: Create libdebuginfod.so.1 first, turn
diff --git a/debuginfod/debuginfod-client.c b/debuginfod/debuginfod-client.c
index a99f3c14..de26af5b 100644
--- a/debuginfod/debuginfod-client.c
+++ b/debuginfod/debuginfod-client.c
@@ -751,7 +751,7 @@ debuginfod_query_server (debuginfod_client *c,
 
   /* thereafter, goto out1 on error.  */
 
-  /* Initalize handle_data with default values. */
+  /* Initialize handle_data with default values. */
   for (int i = 0; i < num_urls; i++)
     {
       data[i].handle = NULL;
@@ -954,7 +954,7 @@ debuginfod_query_server (debuginfod_client *c,
 
           if (msg->data.result != CURLE_OK)
             {
-              /* Unsucessful query, determine error code.  */
+              /* Unsuccessful query, determine error code.  */
               switch (msg->data.result)
                 {
                 case CURLE_COULDNT_RESOLVE_HOST: rc = -EHOSTUNREACH; break; // no NXDOMAIN
diff --git a/debuginfod/debuginfod.cxx b/debuginfod/debuginfod.cxx
index 41698787..9a697186 100644
--- a/debuginfod/debuginfod.cxx
+++ b/debuginfod/debuginfod.cxx
@@ -125,7 +125,7 @@ string_endswith(const string& haystack, const string& needle)
 }
 
 
-// Roll this identifier for every sqlite schema incompatiblity.
+// Roll this identifier for every sqlite schema incompatibility.
 #define BUILDIDS "buildids9"
 
 #if SQLITE_VERSION_NUMBER >= 3008000
@@ -521,13 +521,13 @@ parse_opt (int key, char *arg,
       regfree (&file_include_regex);
       rc = regcomp (&file_include_regex, arg, REG_EXTENDED|REG_NOSUB);
       if (rc != 0)
-        argp_failure(state, 1, EINVAL, "regular expession");
+        argp_failure(state, 1, EINVAL, "regular expression");
       break;
     case 'X':
       regfree (&file_exclude_regex);
       rc = regcomp (&file_exclude_regex, arg, REG_EXTENDED|REG_NOSUB);
       if (rc != 0)
-        argp_failure(state, 1, EINVAL, "regular expession");
+        argp_failure(state, 1, EINVAL, "regular expression");
       break;
     case ARGP_KEY_FDCACHE_FDS:
       fdcache_fds = atol (arg);
-- 
ldv


More information about the Elfutils-devel mailing list