summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-04-08 11:49:57 +0000
committerJim Meyering <jim@meyering.net>2003-04-08 11:49:57 +0000
commitce5034feeba5f633e2133db36669537a4f456726 (patch)
treef55a174a03e17806994b29b472307ab21a876ac1
parent3ca2ab6ef4a2598c4e2a8e859cd367ea498f7feb (diff)
downloadcoreutils-ce5034feeba5f633e2133db36669537a4f456726.tar.xz
(main): Use STDIN_FILENO, not literal `0'.
-rw-r--r--src/split.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/split.c b/src/split.c
index 84b338943..00216d572 100644
--- a/src/split.c
+++ b/src/split.c
@@ -502,7 +502,7 @@ main (int argc, char **argv)
/* Open the input file. */
if (STREQ (infile, "-"))
- input_desc = 0;
+ input_desc = STDIN_FILENO;
else
{
input_desc = open (infile, O_RDONLY);