summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-08-23 01:03:09 (GMT)
committer Denys Vlasenko <vda.linux@googlemail.com>2010-08-23 01:03:09 (GMT)
commit5168bf2caac99fbbb499fb660f20e349c9c65c8c (patch)
tree9a7fe1132212760479ec1b0b0c7c00dc1822a8a3
parentdc04439450e5929880205d920de3a26409727563 (diff)
downloadbusybox-5168bf2caac99fbbb499fb660f20e349c9c65c8c.tar.gz
busybox-5168bf2caac99fbbb499fb660f20e349c9c65c8c.tar.bz2
split: use xopen_stdin()
function old new delta split_main 558 543 -15 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--coreutils/split.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/coreutils/split.c b/coreutils/split.c
index c2f3885..7c9c0c1 100644
--- a/coreutils/split.c
+++ b/coreutils/split.c
@@ -82,9 +82,7 @@ int split_main(int argc UNUSED_PARAM, char **argv)
int fd;
if (argv[1])
sfx = argv[1];
- fd = open_or_warn_stdin(argv[0]);
- if (fd == -1)
- return EXIT_FAILURE;
+ fd = xopen_stdin(argv[0]);
xmove_fd(fd, STDIN_FILENO);
} else {
argv[0] = (char *) bb_msg_standard_input;