diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-08-23 03:06:46 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-08-23 03:06:46 +0200 |
commit | 7ff6836db383d74627b7e7a1bc222b4a80d3ce55 (patch) | |
tree | f9d506c3476a0d0c4122bf96db7a3e9aa441f7cf /coreutils/split.c | |
parent | 3d8b96d58d74d775e34de8d19a03db5380eb8f2c (diff) | |
download | busybox-w32-7ff6836db383d74627b7e7a1bc222b4a80d3ce55.tar.gz busybox-w32-7ff6836db383d74627b7e7a1bc222b4a80d3ce55.tar.bz2 busybox-w32-7ff6836db383d74627b7e7a1bc222b4a80d3ce55.zip |
split: use xopen_stdin()
function old new delta
split_main 558 543 -15
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'coreutils/split.c')
-rw-r--r-- | coreutils/split.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/coreutils/split.c b/coreutils/split.c index e401bd388..db5a1727a 100644 --- a/coreutils/split.c +++ b/coreutils/split.c | |||
@@ -82,9 +82,7 @@ int split_main(int argc UNUSED_PARAM, char **argv) | |||
82 | int fd; | 82 | int fd; |
83 | if (argv[1]) | 83 | if (argv[1]) |
84 | sfx = argv[1]; | 84 | sfx = argv[1]; |
85 | fd = open_or_warn_stdin(argv[0]); | 85 | fd = xopen_stdin(argv[0]); |
86 | if (fd == -1) | ||
87 | return EXIT_FAILURE; | ||
88 | xmove_fd(fd, STDIN_FILENO); | 86 | xmove_fd(fd, STDIN_FILENO); |
89 | } else { | 87 | } else { |
90 | argv[0] = (char *) bb_msg_standard_input; | 88 | argv[0] = (char *) bb_msg_standard_input; |