From 769c6d033c94ec54cb72c7db2ddcf7d587b5ab37 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20R=C3=BChsen?= Date: Sat, 12 Jan 2019 15:17:09 +0100 Subject: [PATCH] Fix typos found by codespell. * lib/*.[hc]: Fix typos in comments. * pygnulib/*.py: Fix typos in error messages and comments. --- ChangeLog | 6 ++++++ lib/af_alg.h | 2 +- lib/argp-help.c | 2 +- lib/cdefs.h | 2 +- lib/file-set.c | 2 +- lib/get-rusage-as.c | 2 +- lib/mountlist.h | 2 +- lib/regexec.c | 2 +- lib/strptime.c | 2 +- lib/trigl.c | 2 +- lib/vma-iter.c | 2 +- pygnulib/GLError.py | 6 +++--- pygnulib/constants.py | 2 +- 13 files changed, 20 insertions(+), 14 deletions(-) diff --git a/ChangeLog b/ChangeLog index 18b80b7b89..ecc7690659 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2019-01-12 Tim Rühsen + + Fix typos found by codespell. + * lib/*.[hc]: Fix typos in comments. + * pygnulib/*.py: Fix typos in error messages and comments. + 2019-01-12 Bruno Haible doc: Fix documentation about container data types. diff --git a/lib/af_alg.h b/lib/af_alg.h index aabb52fab4..877369a7fb 100644 --- a/lib/af_alg.h +++ b/lib/af_alg.h @@ -66,7 +66,7 @@ afalg_buffer (const char *buffer, size_t len, const char *alg, STREAM is an open file stream. The last operation on STREAM should not be 'ungetc', and if STREAM is also open for writing it should have been fflushed since its last write. Read from the current - position to the end of STREAM. Handle regular files efficently. + position to the end of STREAM. Handle regular files efficiently. ALG is the message digest algorithm; see the file /proc/crypto. diff --git a/lib/argp-help.c b/lib/argp-help.c index 75abe84dfe..a3d3e981c3 100644 --- a/lib/argp-help.c +++ b/lib/argp-help.c @@ -1556,7 +1556,7 @@ argp_doc (const struct argp *argp, const struct argp_state *state, } /* 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 diff --git a/lib/cdefs.h b/lib/cdefs.h index 4b696590c0..4f92175443 100644 --- a/lib/cdefs.h +++ b/lib/cdefs.h @@ -340,7 +340,7 @@ 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__ \ diff --git a/lib/file-set.c b/lib/file-set.c index 5916a178e4..5eb9fae3ea 100644 --- a/lib/file-set.c +++ b/lib/file-set.c @@ -48,7 +48,7 @@ record_file (Hash_table *ht, char const *file, struct stat const *stats) if (ent_from_table != ent) { - /* There was alread a matching entry in the table, so ENT was + /* There was already a matching entry in the table, so ENT was not inserted. Free it. */ triple_free (ent); } diff --git a/lib/get-rusage-as.c b/lib/get-rusage-as.c index 0ace6d67c5..73364c7198 100644 --- a/lib/get-rusage-as.c +++ b/lib/get-rusage-as.c @@ -91,7 +91,7 @@ b) pstat_getprocvm() can be used to find out about the virtual memory areas. Both methods agree, except that the value of get_rusage_as_via_iterator() - is slighly larger higher than get_rusage_as_via_setrlimit(), by 4 KB in + is slightly larger higher than get_rusage_as_via_setrlimit(), by 4 KB in 32-bit mode and by 40 KB in 64-bit mode. IRIX: diff --git a/lib/mountlist.h b/lib/mountlist.h index d0cf6c1d64..b1e7e2fa92 100644 --- a/lib/mountlist.h +++ b/lib/mountlist.h @@ -32,7 +32,7 @@ struct mount_entry char *me_type; /* "nfs", "4.2", etc. */ dev_t me_dev; /* Device number of me_mountdir. */ unsigned int me_dummy : 1; /* Nonzero for dummy file systems. */ - unsigned int me_remote : 1; /* Nonzero for remote fileystems. */ + unsigned int me_remote : 1; /* Nonzero for remote file systems. */ unsigned int me_type_malloced : 1; /* Nonzero if me_type was malloced. */ struct mount_entry *me_next; }; diff --git a/lib/regexec.c b/lib/regexec.c index 0a7a27b772..91d5a797b8 100644 --- a/lib/regexec.c +++ b/lib/regexec.c @@ -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. */ diff --git a/lib/strptime.c b/lib/strptime.c index bd7f870328..e6d405a442 100644 --- a/lib/strptime.c +++ b/lib/strptime.c @@ -277,7 +277,7 @@ __strptime_internal (rp, fmt, tm, decided, era_cnt LOCALE_PARAM) } /* Any character but '%' must be matched by the same character - in the iput string. */ + in the input string. */ if (*fmt != '%') { match_char (*fmt++, *rp++); diff --git a/lib/trigl.c b/lib/trigl.c index 1f73bd92e9..29cd2ba3e1 100644 --- a/lib/trigl.c +++ b/lib/trigl.c @@ -325,7 +325,7 @@ static char rcsid[] = * 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 diff --git a/lib/vma-iter.c b/lib/vma-iter.c index a871d2c55f..d641570579 100644 --- a/lib/vma-iter.c +++ b/lib/vma-iter.c @@ -125,7 +125,7 @@ - On all platforms, if some other thread is doing memory allocations or deallocations between two read() calls, there is a high risk that the result of these two read() calls don't fit together, and as a - consequence we will parse gargage and either omit some VMAs or return + consequence we will parse garbage and either omit some VMAs or return VMAs with nonsensical addresses. So use mmap(), and ignore the resulting VMA. */ diff --git a/pygnulib/GLError.py b/pygnulib/GLError.py index 9c249a3287..0727e2f38f 100644 --- a/pygnulib/GLError.py +++ b/pygnulib/GLError.py @@ -62,7 +62,7 @@ class GLError(Exception): 9: missing libname argument 10: conddeps are not supported with inctests 11: incompatible licenses on modules: - 12: cannot process empy filelist + 12: cannot process empty filelist 13: cannot create the given directory: 14: cannot delete the given file: 15: cannot create the given file: @@ -71,7 +71,7 @@ class GLError(Exception): 18: module lacks a license: 19: could not create destination directory: errinfo: additional information; - style: 0 or 1, wheter old-style''' + style: 0 or 1, whether old-style''' self.errno = errno self.errinfo = errinfo self.args = (self.errno, self.errinfo) @@ -97,7 +97,7 @@ class GLError(Exception): + " so you might have to set this argument", "conddeps are not supported with inctests", "incompatible licenses on modules: %s" % repr(errinfo), - "cannot process empy filelist", + "cannot process empty filelist", "cannot create the given directory: %s" % repr(errinfo), "cannot remove the given file: %s" % repr(errinfo), "cannot create the given file: %s" % repr(errinfo), diff --git a/pygnulib/constants.py b/pygnulib/constants.py index 2dc64e6b67..39fe08f002 100644 --- a/pygnulib/constants.py +++ b/pygnulib/constants.py @@ -54,7 +54,7 @@ if not PYTHON3: #=============================================================================== # Define global constants #=============================================================================== -# Declare neccessary variables +# Declare necessary variables APP = dict() # Application DIRS = dict() # Directories UTILS = dict() # Utilities -- 2.11.4.GIT