split: use xopen_stdin()
authorDenys Vlasenko <vda.linux@googlemail.com>
Mon, 23 Aug 2010 01:06:46 +0000 (03:06 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Mon, 23 Aug 2010 01:06:46 +0000 (03:06 +0200)
function                                             old     new   delta
split_main                                           558     543     -15

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
coreutils/split.c

index e401bd388c16def60d073721c0f9e48af5f86c58..db5a1727a501ef9f68c039d51547887d49f6e68c 100644 (file)
@@ -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;