summaryrefslogtreecommitdiff
path: root/intl
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@gmail.com>2017-10-08 13:30:08 +0200
committerTheodore Ts'o <tytso@mit.edu>2017-10-15 23:00:11 -0400
commit055866d84dab5e4a0547f54d3bdc017ba4ba99b5 (patch)
treec528336b04e4dbd57ffc57bc9da0d2392844b1f9 /intl
parentce20096fc6f3b38de62c2302e3a8cb87f389dda0 (diff)
Fix typos in code comments and developer docs
Signed-off-by: Sebastian Rasmussen <sebras@gmail.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu> Reviewed-by: Andreas Dilger <adilger@dilger.ca>
Diffstat (limited to 'intl')
-rw-r--r--intl/dcigettext.c2
-rw-r--r--intl/l10nflist.c2
-rw-r--r--intl/libgettext.h2
-rw-r--r--intl/xsize.h2
4 files changed, 4 insertions, 4 deletions
diff --git a/intl/dcigettext.c b/intl/dcigettext.c
index 79678cf8..f5a99b50 100644
--- a/intl/dcigettext.c
+++ b/intl/dcigettext.c
@@ -602,7 +602,7 @@ DCIGETTEXT (const char *domainname, const char *msgid1, const char *msgid2,
/* When this is a SUID binary we must not allow accessing files
outside the dedicated directories. */
if (ENABLE_SECURE && IS_PATH_WITH_DIR (single_locale))
- /* Ingore this entry. */
+ /* Ignore this entry. */
continue;
}
diff --git a/intl/l10nflist.c b/intl/l10nflist.c
index 3393ecb5..c13d36da 100644
--- a/intl/l10nflist.c
+++ b/intl/l10nflist.c
@@ -242,7 +242,7 @@ _nl_make_l10nflist (struct loaded_l10nfile **l10nfile_list,
}
if ((mask & (XPG_MODIFIER | CEN_AUDIENCE)) != 0)
{
- /* This component can be part of both syntaces but has different
+ /* This component can be part of both syntaxes but has different
leading characters. For CEN we use `+', else `@'. */
*cp++ = (mask & CEN_AUDIENCE) != 0 ? '+' : '@';
cp = stpcpy (cp, modifier);
diff --git a/intl/libgettext.h b/intl/libgettext.h
index 3a92960a..c069fbd5 100644
--- a/intl/libgettext.h
+++ b/intl/libgettext.h
@@ -84,7 +84,7 @@ extern int _msg_tbl_length;
#endif
-/* For automatical extraction of messages sometimes no real
+/* For automatic extraction of messages sometimes no real
translation is needed. Instead the string itself is the result. */
#define gettext_noop(Str) (Str)
diff --git a/intl/xsize.h b/intl/xsize.h
index 362e24b7..e3707fa1 100644
--- a/intl/xsize.h
+++ b/intl/xsize.h
@@ -95,7 +95,7 @@ xmax (size_t size1, size_t size2)
/* Multiplication of a count with an element size, with overflow check.
The count must be >= 0 and the element size must be > 0.
This is a macro, not an inline function, so that it works correctly even
- when N is of a wider tupe and N > SIZE_MAX. */
+ when N is of a wider type and N > SIZE_MAX. */
#define xtimes(N, ELSIZE) \
((N) <= SIZE_MAX / (ELSIZE) ? (size_t) (N) * (ELSIZE) : SIZE_MAX)