summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2011-05-19 21:36:33 +0200
committerJim Meyering <meyering@redhat.com>2011-05-19 21:36:33 +0200
commitcb4a0e31e282924f86046557980a2b5e16111ddd (patch)
tree92624e3912998c5a6e3e72cfdbd0ee2502194b54 /src
parentbeaa94931345271fd288480d7ea952f9551ef991 (diff)
downloadcoreutils-cb4a0e31e282924f86046557980a2b5e16111ddd.tar.xz
maint: correct typos involving misuse of "a" and "an"
* NEWS: "an misleading" * src/expr.c: "a integer * src/ptx.c (find_occurs_in_text): "a end" * src/shred.c (do_wipefd): "a infinite" * src/sort.c (SUBTHREAD_LINES_HEURISTIC): "an dual-core" (compare_random): "an checksum" * cfg.mk (old_NEWS_hash): Update, since the typo was in old news.
Diffstat (limited to 'src')
-rw-r--r--src/expr.c2
-rw-r--r--src/ptx.c2
-rw-r--r--src/shred.c2
-rw-r--r--src/sort.c4
4 files changed, 5 insertions, 5 deletions
diff --git a/src/expr.c b/src/expr.c
index 2be8b1dbb..ce65ecf46 100644
--- a/src/expr.c
+++ b/src/expr.c
@@ -483,7 +483,7 @@ toarith (VALUE *v)
}
}
-/* Extract a size_t value from a integer value I.
+/* Extract a size_t value from an integer value I.
If the value is negative, return SIZE_MAX.
If the value is too large, return SIZE_MAX - 1. */
static size_t
diff --git a/src/ptx.c b/src/ptx.c
index 3ee14ffb1..7ac6e8f63 100644
--- a/src/ptx.c
+++ b/src/ptx.c
@@ -797,7 +797,7 @@ find_occurs_in_text (void)
context_start = cursor;
- /* If a end of line or end of sentence sequence is defined and
+ /* If an end of line or end of sentence sequence is defined and
non-empty, `next_context_start' will be recomputed to be the end of
each line or sentence, before each one is processed. If no such
sequence, then `next_context_start' is set at the end of the whole
diff --git a/src/shred.c b/src/shred.c
index 27747919f..d8b33e780 100644
--- a/src/shred.c
+++ b/src/shred.c
@@ -781,7 +781,7 @@ do_wipefd (int fd, char const *qname, struct randint_source *s,
}
/* If we know that we can't possibly shred the file, give up now.
- Otherwise, we may go into a infinite loop writing data before we
+ Otherwise, we may go into an infinite loop writing data before we
find that we can't rewind the device. */
if ((S_ISCHR (st.st_mode) && isatty (fd))
|| S_ISFIFO (st.st_mode)
diff --git a/src/sort.c b/src/sort.c
index e10159a9b..084addf49 100644
--- a/src/sort.c
+++ b/src/sort.c
@@ -112,7 +112,7 @@ struct rlimit { size_t rlim_cur; };
/* Heuristic value for the number of lines for which it is worth creating
a subthread, during an internal merge sort. I.e., it is a small number
of "average" lines for which sorting via two threads is faster than
- sorting via one on an "average" system. On an dual-core 2.0 GHz i686
+ sorting via one on an "average" system. On a dual-core 2.0 GHz i686
system with 3GB of RAM and 2MB of L2 cache, a file containing 128K
lines of gensort -a output is sorted slightly faster with --parallel=2
than with --parallel=1. By contrast, using --parallel=1 is about 10%
@@ -2029,7 +2029,7 @@ compare_random (char *restrict texta, size_t lena,
char *restrict textb, size_t lenb)
{
/* XFRM_DIFF records the equivalent of memcmp on the transformed
- data. This is used to break ties if there is an checksum
+ data. This is used to break ties if there is a checksum
collision, and this is good enough given the astronomically low
probability of a collision. */
int xfrm_diff = 0;