From bcc83fc1af155750ed14d6eb5f9af476e930be52 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 26 Oct 2008 21:51:15 +0100 Subject: remove wc-related code that doesn't apply here * src/mkid.c: Don't handle a file name of "-" specially. * src/xtokid.c: Likewise. * testsuite/files0-from: Don't test for it. --- src/mkid.c | 11 ----------- src/xtokid.c | 11 ----------- 2 files changed, 22 deletions(-) (limited to 'src') diff --git a/src/mkid.c b/src/mkid.c index 1b4ab8a..0345999 100644 --- a/src/mkid.c +++ b/src/mkid.c @@ -352,17 +352,6 @@ main (int argc, char **argv) { struct file_link *flink; - if (files_from && strequ(files_from, "-") && strequ(files[i], "-")) - { - ok = false; - /* Give a better diagnostic in an unusual case: - printf - | wc --files0-from=- */ - error (0, 0, _("when reading file names from stdin, " - "no file name of %s allowed"), - quote ("-")); - continue; - } - /* Diagnose a zero-length file name. When it's one among many, knowing the record number may help. */ if (files[i][0] == '\0') diff --git a/src/xtokid.c b/src/xtokid.c index 6311827..1a11a76 100644 --- a/src/xtokid.c +++ b/src/xtokid.c @@ -232,17 +232,6 @@ main (int argc, char **argv) { struct file_link *flink; - if (files_from && strequ(files_from, "-") && strequ(files[i], "-")) - { - ok = false; - /* Give a better diagnostic in an unusual case: - printf - | wc --files0-from=- */ - error (0, 0, _("when reading file names from stdin, " - "no file name of %s allowed"), - quote ("-")); - continue; - } - /* Diagnose a zero-length file name. When it's one among many, knowing the record number may help. */ if (files[i][0] == '\0') -- cgit v1.2.3