summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2008-10-26 21:51:15 +0100
committerJim Meyering <meyering@redhat.com>2009-07-04 18:47:49 +0200
commitbcc83fc1af155750ed14d6eb5f9af476e930be52 (patch)
tree50e04afceb8f93d12eb1cc35ec63c377eccbdc15 /src
parent582103c67e6718b484e052fc135cba7056eeaf0a (diff)
downloadidutils-bcc83fc1af155750ed14d6eb5f9af476e930be52.tar.gz
idutils-bcc83fc1af155750ed14d6eb5f9af476e930be52.tar.bz2
idutils-bcc83fc1af155750ed14d6eb5f9af476e930be52.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/mkid.c11
-rw-r--r--src/xtokid.c11
2 files changed, 0 insertions, 22 deletions
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')