debuginfod: fix spelling typos in error diagnostics and comments
authorDmitry V. Levin <ldv@altlinux.org>
Sat, 12 Dec 2020 16:50:12 +0000 (19:50 +0300)
committerMark Wielaard <mark@klomp.org>
Sat, 12 Dec 2020 17:06:28 +0000 (18:06 +0100)
Initalize -> Initialize
Unsucessful -> Unsuccessful
expession -> expression
incompatiblity -> incompatibility

Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
debuginfod/ChangeLog
debuginfod/debuginfod-client.c
debuginfod/debuginfod.cxx

index 0a7e458..379af28 100644 (file)
@@ -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
index a99f3c1..de26af5 100644 (file)
@@ -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
index 4169878..9a69718 100644 (file)
@@ -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);