diff options
author | Karel Zak | 2006-12-07 00:25:53 +0100 |
---|---|---|
committer | Karel Zak | 2006-12-07 00:25:53 +0100 |
commit | ffc4374869b9ac10539a3c18e13b29d1b0c64484 (patch) | |
tree | 1b8054e83f7f70e8fa77499fc9246d1cc16faa15 /text-utils/colrm.c | |
parent | Imported from util-linux-2.11n tarball. (diff) | |
download | kernel-qcow2-util-linux-ffc4374869b9ac10539a3c18e13b29d1b0c64484.tar.gz kernel-qcow2-util-linux-ffc4374869b9ac10539a3c18e13b29d1b0c64484.tar.xz kernel-qcow2-util-linux-ffc4374869b9ac10539a3c18e13b29d1b0c64484.zip |
Imported from util-linux-2.11o tarball.
Diffstat (limited to 'text-utils/colrm.c')
-rw-r--r-- | text-utils/colrm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/text-utils/colrm.c b/text-utils/colrm.c index 9ef8af679..5e18a6ffa 100644 --- a/text-utils/colrm.c +++ b/text-utils/colrm.c @@ -70,7 +70,7 @@ start: ct = 0; loop1: c = getwc(stdin); - if (feof(stdin)) + if (c == WEOF) goto fin; if (c == '\t') w = ((ct + 8) & ~7) - ct; @@ -96,7 +96,7 @@ loop1: /* Loop getting rid of characters */ while (!last || ct < last) { c = getwc(stdin); - if (feof(stdin)) + if (c == WEOF) goto fin; if (c == '\n') { putwc(c, stdout); @@ -119,7 +119,7 @@ loop1: /* Output last of the line */ for (;;) { c = getwc(stdin); - if (feof(stdin)) + if (c == WEOF) break; if (c == '\n') { putwc(c, stdout); |