diff options
author | Paul Pluzhnikov <ppluzhnikov@google.com> | 2023-05-20 13:37:47 +0000 |
---|---|---|
committer | Paul Pluzhnikov <ppluzhnikov@google.com> | 2023-06-02 01:39:48 +0000 |
commit | 7f0d9e61f40c669fca3cfd1e342fa8236c7220b7 (patch) | |
tree | e02ce0ba813f2cb4f20643988ec030292784cab6 /string | |
parent | 5013f6fc6c44160e8ec6bcd34ba676e85d9d6ab6 (diff) | |
download | glibc-7f0d9e61f40c669fca3cfd1e342fa8236c7220b7.tar.gz glibc-7f0d9e61f40c669fca3cfd1e342fa8236c7220b7.tar.xz glibc-7f0d9e61f40c669fca3cfd1e342fa8236c7220b7.zip |
Fix all the remaining misspellings -- BZ 25337
Diffstat (limited to 'string')
-rw-r--r-- | string/memcmpeq.c | 2 | ||||
-rw-r--r-- | string/strcoll_l.c | 2 | ||||
-rw-r--r-- | string/test-memcmp.c | 2 | ||||
-rw-r--r-- | string/test-strcasecmp.c | 2 | ||||
-rw-r--r-- | string/test-strcmp.c | 2 | ||||
-rw-r--r-- | string/test-strncasecmp.c | 2 | ||||
-rw-r--r-- | string/test-strncmp.c | 2 | ||||
-rw-r--r-- | string/test-strnlen.c | 2 | ||||
-rw-r--r-- | string/tst-memmove-overflow.c | 2 |
9 files changed, 9 insertions, 9 deletions
diff --git a/string/memcmpeq.c b/string/memcmpeq.c index c38e7b0567..5397c05d53 100644 --- a/string/memcmpeq.c +++ b/string/memcmpeq.c @@ -16,7 +16,7 @@ <https://www.gnu.org/licenses/>. */ /* This file is intentionally left empty. It exists so that both - architectures which implement __memcmpeq seperately from memcmp and + architectures which implement __memcmpeq separately from memcmp and architectures which implement __memcmpeq by having it alias memcmp will build. diff --git a/string/strcoll_l.c b/string/strcoll_l.c index d60e1ba4a7..5f7b8606f6 100644 --- a/string/strcoll_l.c +++ b/string/strcoll_l.c @@ -103,7 +103,7 @@ get_next_seq (coll_seq *seq, int nrules, const unsigned char *rulesets, else { /* XXX Traverse BACKW sequences from the beginning of - BACKW_STOP to get the next sequence. Is ther a quicker way + BACKW_STOP to get the next sequence. Is there a quicker way to do this? */ size_t i = backw_stop; us = seq->back_us; diff --git a/string/test-memcmp.c b/string/test-memcmp.c index bc46a66bfd..7093a9a685 100644 --- a/string/test-memcmp.c +++ b/string/test-memcmp.c @@ -45,7 +45,7 @@ SIMPLE_MEMCMP (const wchar_t *s1, const wchar_t *s2, size_t n) int ret = 0; /* Warning! wmemcmp has to use SIGNED comparison for elements. - memcmp has to use UNSIGNED comparison for elemnts. + memcmp has to use UNSIGNED comparison for elements. */ while (n-- && (ret = *s1 < *s2 ? -1 : *s1 == *s2 ? 0 : 1) == 0) {s1++; s2++;} return ret; diff --git a/string/test-strcasecmp.c b/string/test-strcasecmp.c index 805e8519fb..4ff680f264 100644 --- a/string/test-strcasecmp.c +++ b/string/test-strcasecmp.c @@ -99,7 +99,7 @@ do_test (size_t align1, size_t align2, size_t len, int max_char, else s2[len - 1] -= exp_result; - /* For some locals this is not guranteed yet. */ + /* For some locals this is not guaranteed yet. */ if (tolower (s1[len - 1]) - tolower (s2[len - 1]) != exp_result) { if (exp_result == -1) diff --git a/string/test-strcmp.c b/string/test-strcmp.c index fa3161688c..fb52559400 100644 --- a/string/test-strcmp.c +++ b/string/test-strcmp.c @@ -48,7 +48,7 @@ # define CHAR__MIN WCHAR_MIN /* Wcscmp uses signed semantics for comparison, not unsigned */ -/* Avoid using substraction since possible overflow */ +/* Avoid using subtraction since possible overflow */ int simple_wcscmp (const wchar_t *s1, const wchar_t *s2) diff --git a/string/test-strncasecmp.c b/string/test-strncasecmp.c index 6246fe5c1b..5f0654efc5 100644 --- a/string/test-strncasecmp.c +++ b/string/test-strncasecmp.c @@ -119,7 +119,7 @@ do_test (size_t align1, size_t align2, size_t n, size_t len, int max_char, else s2[len - 1] -= exp_result; - /* For some locals this is not guranteed yet. */ + /* For some locals this is not guaranteed yet. */ if (tolower (s1[len - 1]) - tolower (s2[len - 1]) != exp_result) { if (exp_result == -1) diff --git a/string/test-strncmp.c b/string/test-strncmp.c index 35dc496eae..75e745a5ba 100644 --- a/string/test-strncmp.c +++ b/string/test-strncmp.c @@ -44,7 +44,7 @@ # define CHAR__MIN WCHAR_MIN /* Wcsncmp uses signed semantics for comparison, not unsigned. - Avoid using substraction since possible overflow */ + Avoid using subtraction since possible overflow */ int simple_wcsncmp (const CHAR *s1, const CHAR *s2, size_t n) { diff --git a/string/test-strnlen.c b/string/test-strnlen.c index ef73dd34f4..10e7540a1e 100644 --- a/string/test-strnlen.c +++ b/string/test-strnlen.c @@ -260,7 +260,7 @@ do_page_tests (void) } /* Tests meant to unveil fail on implementations that access bytes - beyond the maxium length. */ + beyond the maximum length. */ static void do_page_2_tests (void) diff --git a/string/tst-memmove-overflow.c b/string/tst-memmove-overflow.c index 97e19af757..d17a3aa795 100644 --- a/string/tst-memmove-overflow.c +++ b/string/tst-memmove-overflow.c @@ -1,4 +1,4 @@ -/* Test for signed comparision bug in memmove (bug 25620). +/* Test for signed comparison bug in memmove (bug 25620). Copyright (C) 2020-2023 Free Software Foundation, Inc. This file is part of the GNU C Library. |