diff options
Diffstat (limited to 'archival/rpm2cpio.c')
-rw-r--r-- | archival/rpm2cpio.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/archival/rpm2cpio.c b/archival/rpm2cpio.c index 6aae150e2..3ae8458dd 100644 --- a/archival/rpm2cpio.c +++ b/archival/rpm2cpio.c | |||
@@ -6,11 +6,6 @@ | |||
6 | * | 6 | * |
7 | * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. | 7 | * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. |
8 | */ | 8 | */ |
9 | #include <sys/types.h> | ||
10 | #include <netinet/in.h> /* For ntohl & htonl function */ | ||
11 | #include <fcntl.h> | ||
12 | #include <unistd.h> | ||
13 | #include <string.h> | ||
14 | #include "busybox.h" | 9 | #include "busybox.h" |
15 | #include "unarchive.h" | 10 | #include "unarchive.h" |
16 | 11 | ||
@@ -63,7 +58,7 @@ int rpm2cpio_main(int argc, char **argv) | |||
63 | if (argc == 1) { | 58 | if (argc == 1) { |
64 | rpm_fd = STDIN_FILENO; | 59 | rpm_fd = STDIN_FILENO; |
65 | } else { | 60 | } else { |
66 | rpm_fd = bb_xopen(argv[1], O_RDONLY); | 61 | rpm_fd = xopen(argv[1], O_RDONLY); |
67 | } | 62 | } |
68 | 63 | ||
69 | xread(rpm_fd, &lead, sizeof(struct rpm_lead)); | 64 | xread(rpm_fd, &lead, sizeof(struct rpm_lead)); |