From b2dfc3b5e52bde06d3ef07bcc12e8dfb00f13634 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 9 Apr 2011 23:23:01 +0200 Subject: [PATCH] maint: remove doubled words in comments, e.g., s/to to/to/ * tests/ls/color-norm: s/to to/to/ * gl/lib/mbsalign.h (mbs_align_t): s/or or/or/ * src/extent-scan.c (extent_scan_read): s/the the/the/ * src/libstdbuf.c: s/the the/the/ * tests/misc/stdbuf: s/on on/on/ * ChangeLog-2005: s/for\n\tfor /for\n\t/ --- ChangeLog-2005 | 2 +- gl/lib/mbsalign.h | 2 +- src/extent-scan.c | 2 +- src/libstdbuf.c | 2 +- tests/ls/color-norm | 2 +- tests/misc/stdbuf | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ChangeLog-2005 b/ChangeLog-2005 index d4b8cc2..8709804 100644 --- a/ChangeLog-2005 +++ b/ChangeLog-2005 @@ -9086,7 +9086,7 @@ split's --verbose option did nothing [broken in 4.5.10 and 5.0] * src/split.c (longopts): Use `1', not `0' as the value for - for &verbose. Reported by Keith Thompson. + &verbose. Reported by Keith Thompson. Test for the above fix. * tests/misc/split-a: Also use --verbose and compare stderr diff --git a/gl/lib/mbsalign.h b/gl/lib/mbsalign.h index 76d5a3f..de5d767 100644 --- a/gl/lib/mbsalign.h +++ b/gl/lib/mbsalign.h @@ -19,7 +19,7 @@ typedef enum { MBS_ALIGN_LEFT, MBS_ALIGN_RIGHT, MBS_ALIGN_CENTER } mbs_align_t; enum { - /* Use unibyte mode for invalid multibyte strings or + /* Use unibyte mode for invalid multibyte strings or when heap memory is exhausted. */ MBA_UNIBYTE_FALLBACK = 0x0001 diff --git a/src/extent-scan.c b/src/extent-scan.c index 71a9404..e95b085 100644 --- a/src/extent-scan.c +++ b/src/extent-scan.c @@ -104,7 +104,7 @@ extent_scan_read (struct extent_scan *scan) fiemap->fm_extent_count = count; fiemap->fm_length = FIEMAP_MAX_OFFSET - scan->scan_start; - /* Fall back to the standard copy if call ioctl(2) failed for the + /* Fall back to the standard copy if call ioctl(2) failed for the first time. */ if (ioctl (scan->fd, FS_IOC_FIEMAP, fiemap) < 0) { diff --git a/src/libstdbuf.c b/src/libstdbuf.c index ce89ce0..9cb101e 100644 --- a/src/libstdbuf.c +++ b/src/libstdbuf.c @@ -22,7 +22,7 @@ #include "system.h" #include "verify.h" -/* Note currently for glibc (2.3.5) the following call does not change the +/* Note currently for glibc (2.3.5) the following call does not change the buffer size, and more problematically does not give any indication that the new size request was ignored: diff --git a/tests/ls/color-norm b/tests/ls/color-norm index 6d8c14d..20bc121 100755 --- a/tests/ls/color-norm +++ b/tests/ls/color-norm @@ -27,7 +27,7 @@ umask 22 # Output time as something constant export TIME_STYLE="+norm" -# helper to to strip ls columns up to "norm" time +# helper to strip ls columns up to "norm" time qls() { sed 's/-r.*norm/norm/'; } touch exe || framework_failure diff --git a/tests/misc/stdbuf b/tests/misc/stdbuf index 8bb5721..35b5710 100755 --- a/tests/misc/stdbuf +++ b/tests/misc/stdbuf @@ -104,7 +104,7 @@ retry_delay_ stdbuf_unbuffer .1 6 || fail=1 # Ensure block buffering stdout takes effect # We don't currently test block buffering failures as -# this doesn't work on on GLIBC-2.7 or GLIBC-2.9 at least. +# this doesn't work on GLIBC-2.7 or GLIBC-2.9 at least. # stdbuf_blockbuffer() # { # local delay="$1" -- 2.7.4