diff options
author | Rob Landley | 2005-09-11 01:05:30 +0000 |
---|---|---|
committer | Rob Landley | 2005-09-11 01:05:30 +0000 |
commit | b7128c6236ac9b4d5d69ad95d509498f38df0dd6 (patch) | |
tree | 0358a910b954c6c7fdcaddf389693a0c2e96ef70 /archival/cpio.c | |
parent | db289b258de53bdcea7d671f854aafbb490321df (diff) | |
download | busybox-b7128c6236ac9b4d5d69ad95d509498f38df0dd6.zip busybox-b7128c6236ac9b4d5d69ad95d509498f38df0dd6.tar.gz |
Cleanup patch by Bernhard Fischer, removing unnecessary includes of
getopt.h, whitespace changes, typos, etc.
Diffstat (limited to 'archival/cpio.c')
-rw-r--r-- | archival/cpio.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/archival/cpio.c b/archival/cpio.c index 0fbe7b8..820f03e 100644 --- a/archival/cpio.c +++ b/archival/cpio.c @@ -24,20 +24,19 @@ * */ #include <fcntl.h> -#include <getopt.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include "unarchive.h" #include "busybox.h" -#define CPIO_OPT_EXTRACT 0x01 -#define CPIO_OPT_TEST 0x02 -#define CPIO_OPT_UNCONDITIONAL 0x04 -#define CPIO_OPT_VERBOSE 0x08 -#define CPIO_OPT_FILE 0x10 +#define CPIO_OPT_EXTRACT 0x01 +#define CPIO_OPT_TEST 0x02 +#define CPIO_OPT_UNCONDITIONAL 0x04 +#define CPIO_OPT_VERBOSE 0x08 +#define CPIO_OPT_FILE 0x10 #define CPIO_OPT_CREATE_LEADING_DIR 0x20 -#define CPIO_OPT_PRESERVE_MTIME 0x40 +#define CPIO_OPT_PRESERVE_MTIME 0x40 extern int cpio_main(int argc, char **argv) { @@ -59,7 +58,7 @@ extern int cpio_main(int argc, char **argv) } if (opt & CPIO_OPT_TEST) { - /* if both extract and test option are given, ignore extract option */ + /* if both extract and test options are given, ignore extract option */ if (opt & CPIO_OPT_EXTRACT) { opt &= ~CPIO_OPT_EXTRACT; } @@ -79,7 +78,7 @@ extern int cpio_main(int argc, char **argv) archive_handle->action_header = header_list; } } - if (cpio_filename) { /* CPIO_OPT_FILE */ + if (cpio_filename) { /* CPIO_OPT_FILE */ archive_handle->src_fd = bb_xopen(cpio_filename, O_RDONLY); archive_handle->seek = seek_by_jump; } |