]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix a few typos in comments
authorDmitry V. Levin <ldv@altlinux.org>
Sat, 12 Jan 2019 13:44:51 +0000 (13:44 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Sat, 12 Jan 2019 13:44:51 +0000 (13:44 +0000)
Apply the following spelling fixes:
$ git grep -F -l 'relevent' |
  xargs sed -i 's/relevent/relevant/g'
$ git grep -F -l 'checked fot' |
  xargs sed -i 's/checked fot/checked for/g'
$ git grep -F -l "could't" |
  xargs sed -i "s/could't/couldn't/g"
$ git grep -F -l 'wheter' | grep -Fv ChangeLog.old |
  xargs sed -i 's/wheter/whether/g'
$ git grep -F -l 'neccessary' | grep -Fv ChangeLog.old |
  xargs sed -i 's/neccessary/necessary/g'
$ git grep -F -l 'ouput' |
  xargs sed -i 's/ouput/output/g'
$ git grep -F -w -l 'iput' |
  xargs sed -i 's/iput/input/g'

This is inspired by a gnulib bug report at
https://lists.gnu.org/archive/html/bug-gnulib/2019-01/msg00081.html

* argp/argp-help.c: Fix typo in comment.
* misc/sys/cdefs.h: Likewise.
* posix/regexec.c (sift_states_iter_mb): Likewise.
* socket/sockatmark.c: Likewise.
* socket/sys/socket.h: Likewise.
* sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
* sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
* sysdeps/ia64/fpu/s_cosl.S: Likewise.
* sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
* sysdeps/unix/sockatmark.c: Likewise.
* time/strptime_l.c: Likewise.

12 files changed:
ChangeLog
argp/argp-help.c
misc/sys/cdefs.h
posix/regexec.c
socket/sockatmark.c
socket/sys/socket.h
sysdeps/ia64/fpu/libm_sincos_large.S
sysdeps/ia64/fpu/libm_sincosl.S
sysdeps/ia64/fpu/s_cosl.S
sysdeps/ieee754/dbl-64/k_rem_pio2.c
sysdeps/unix/sockatmark.c
time/strptime_l.c

index 762762db5a0ded14beafe968d499fad51fefef01..101a267ebc4786f7e93876e61ca80317a91c475d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,17 @@
+2019-01-12  Dmitry V. Levin  <ldv@altlinux.org>
+
+       * argp/argp-help.c: Fix typo in comment.
+       * misc/sys/cdefs.h: Likewise.
+       * posix/regexec.c (sift_states_iter_mb): Likewise.
+       * socket/sockatmark.c: Likewise.
+       * socket/sys/socket.h: Likewise.
+       * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
+       * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
+       * sysdeps/ia64/fpu/s_cosl.S: Likewise.
+       * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
+       * sysdeps/unix/sockatmark.c: Likewise.
+       * time/strptime_l.c: Likewise.
+
 2019-01-11  TAMUKI Shoichi  <tamuki@linet.gr.jp>
 
        * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
index 0ccd0120844af83912e8c4fd35c64f6c98de6456..52ec2316fadfe8dfff834ba6486a1846c0a09769 100644 (file)
@@ -1540,7 +1540,7 @@ argp_doc (const struct argp *argp, const struct argp_state *state,
 }
 \f
 /* Output a usage message for ARGP to STREAM.  If called from
-   argp_state_help, STATE is the relevent parsing state.  FLAGS are from the
+   argp_state_help, STATE is the relevant parsing state.  FLAGS are from the
    set ARGP_HELP_*.  NAME is what to use wherever a `program name' is
    needed. */
 static void
index d1f5fe208de5f8dde29439c2090c20263326e22f..88bc7ac94209ca7742b13c23dfe25f45aa9c5a54 100644 (file)
    semantics.
 
    clang++ identifies itself as gcc-4.2, but has support for GNU inlining
-   semantics, that can be checked fot by using the __GNUC_STDC_INLINE_ and
+   semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and
    __GNUC_GNU_INLINE__ macro definitions.  */
 #if (!defined __cplusplus || __GNUC_PREREQ (4,3) \
      || (defined __clang__ && (defined __GNUC_STDC_INLINE__ \
index 0a7a27b772e3f65198d04861cb4a4e4ee97db522..91d5a797b82e2679ceab74238416de06693e46ea 100644 (file)
@@ -2207,7 +2207,7 @@ sift_states_iter_mb (const re_match_context_t *mctx, re_sift_context_t *sctx,
                            dfa->nexts[node_idx]))
     /* The node can't accept the "multi byte", or the
        destination was already thrown away, then the node
-       could't accept the current input "multi byte".   */
+       couldn't accept the current input "multi byte".   */
     naccepted = 0;
   /* Otherwise, it is sure that the node could accept
      'naccepted' bytes input.  */
index 3ffb014a8d0fc7b5ffba331b9c7b098acb05aaea..d6a13c84d5498556520d9f270182ba393129c32a 100644 (file)
@@ -18,7 +18,7 @@
 #include <errno.h>
 #include <sys/socket.h>
 
-/* Determine wheter socket is at a out-of-band mark.  */
+/* Determine whether socket is at a out-of-band mark.  */
 int
 sockatmark (int fd)
 {
index 37e4a4af06f6b6a8384474837bcbbd597ab4c293..6f242d088bb52f557ca963421d46bb2b14a04f11 100644 (file)
@@ -251,7 +251,7 @@ extern int shutdown (int __fd, int __how) __THROW;
 
 
 #ifdef __USE_XOPEN2K
-/* Determine wheter socket is at a out-of-band mark.  */
+/* Determine whether socket is at a out-of-band mark.  */
 extern int sockatmark (int __fd) __THROW;
 #endif
 
index 9faa75980f276bc1e22cf6bda56814fa6678cde6..64c42662dd06c3f1e1786a6f8069dee78d23ebfa 100644 (file)
 //           = (-1)^i_0 * [cos(r) - c*r] if i_1 = 1
 //
 //  because |r| is small and thus the second terms in the correction
-//  are unneccessary.
+//  are unnecessary.
 //
 //  Finally, sin(r) and cos(r) are approximated by polynomials of
 //  moderate lengths.
index f76b54d3de3b843c35c3a8f144791293b8ca893d..b0d027caf58e29b4c5ee08572f8a0260f99f38bb 100644 (file)
 //           = (-1)^i_0 * [cosl(r) - c*r] if i_1 = 1
 //
 //  because |r| is small and thus the second terms in the correction
-//  are unneccessary.
+//  are unnecessary.
 //
 //  Finally, sinl(r) and cosl(r) are approximated by polynomials of
 //  moderate lengths.
index ed4b571fabb5106f9048510521bf4c140c9dfd7a..961b8d23ce03fea2d00d958aced84227a0ccac64 100644 (file)
 //           = (-1)^i_0 * [cosl(r) - c*r] if i_1 = 1
 //
 //  because |r| is small and thus the second terms in the correction
-//  are unneccessary.
+//  are unnecessary.
 //
 //  Finally, sinl(r) and cosl(r) are approximated by polynomials of
 //  moderate lengths.
index 6221a1a474f5dadb8a7bd3d5bf64f58474b02d9e..6e2ef5d07bade489a6b8a0d7da343ce7e334bfaf 100644 (file)
@@ -45,7 +45,7 @@ static char rcsid[] = "$NetBSD: k_rem_pio2.c,v 1.7 1995/05/10 20:46:25 jtc Exp $
  *                     z    = (z-x[i])*2**24
  *
  *
- *     y[]     ouput result in an array of double precision numbers.
+ *     y[]     output result in an array of double precision numbers.
  *             The dimension of y[] is:
  *                     24-bit  precision       1
  *                     53-bit  precision       2
index 2fe9abbf534bd909d5e12cf3865ce51f851e8d84..c36401ab9058dc8a74299fcee99d246e0ac3768a 100644 (file)
@@ -18,7 +18,7 @@
 #include <sys/ioctl.h>
 #include <sys/socket.h>
 
-/* Determine wheter socket is at a out-of-band mark.  */
+/* Determine whether socket is at a out-of-band mark.  */
 int
 sockatmark (int fd)
 {
index d8aed0d5f60e495294537f2fb4e632ff5a42f31d..58b271eb37c5f27cbb37dbad6b83e59063b63a0e 100644 (file)
@@ -306,7 +306,7 @@ __strptime_internal (const char *rp, const char *fmt, struct tm *tmp,
        }
 
       /* Any character but `%' must be matched by the same character
-        in the iput string.  */
+        in the input string.  */
       if (*fmt != '%')
        {
          match_char (*fmt++, *rp++);