diff options
Diffstat (limited to 'archival')
35 files changed, 38 insertions, 38 deletions
diff --git a/archival/ar.c b/archival/ar.c index 05cb231aa..7782af89f 100644 --- a/archival/ar.c +++ b/archival/ar.c | |||
@@ -57,7 +57,7 @@ static void header_verbose_list_ar(const file_header_t *file_header) | |||
57 | #define AR_OPT_CREATE 0x20 | 57 | #define AR_OPT_CREATE 0x20 |
58 | #define AR_OPT_INSERT 0x40 | 58 | #define AR_OPT_INSERT 0x40 |
59 | 59 | ||
60 | extern int ar_main(int argc, char **argv) | 60 | int ar_main(int argc, char **argv) |
61 | { | 61 | { |
62 | archive_handle_t *archive_handle; | 62 | archive_handle_t *archive_handle; |
63 | unsigned long opt; | 63 | unsigned long opt; |
diff --git a/archival/cpio.c b/archival/cpio.c index 820f03e9b..26f845bc9 100644 --- a/archival/cpio.c +++ b/archival/cpio.c | |||
@@ -38,7 +38,7 @@ | |||
38 | #define CPIO_OPT_CREATE_LEADING_DIR 0x20 | 38 | #define CPIO_OPT_CREATE_LEADING_DIR 0x20 |
39 | #define CPIO_OPT_PRESERVE_MTIME 0x40 | 39 | #define CPIO_OPT_PRESERVE_MTIME 0x40 |
40 | 40 | ||
41 | extern int cpio_main(int argc, char **argv) | 41 | int cpio_main(int argc, char **argv) |
42 | { | 42 | { |
43 | archive_handle_t *archive_handle; | 43 | archive_handle_t *archive_handle; |
44 | char *cpio_filename = NULL; | 44 | char *cpio_filename = NULL; |
diff --git a/archival/dpkg_deb.c b/archival/dpkg_deb.c index 29e9719cb..fa89e44a0 100644 --- a/archival/dpkg_deb.c +++ b/archival/dpkg_deb.c | |||
@@ -28,7 +28,7 @@ | |||
28 | #define DPKG_DEB_OPT_EXTRACT 8 | 28 | #define DPKG_DEB_OPT_EXTRACT 8 |
29 | #define DPKG_DEB_OPT_EXTRACT_VERBOSE 16 | 29 | #define DPKG_DEB_OPT_EXTRACT_VERBOSE 16 |
30 | 30 | ||
31 | extern int dpkg_deb_main(int argc, char **argv) | 31 | int dpkg_deb_main(int argc, char **argv) |
32 | { | 32 | { |
33 | archive_handle_t *ar_archive; | 33 | archive_handle_t *ar_archive; |
34 | archive_handle_t *tar_archive; | 34 | archive_handle_t *tar_archive; |
diff --git a/archival/gunzip.c b/archival/gunzip.c index 76738b017..4fb77044a 100644 --- a/archival/gunzip.c +++ b/archival/gunzip.c | |||
@@ -75,7 +75,7 @@ static char *license_msg[] = { | |||
75 | #define GUNZIP_OPT_TEST 4 | 75 | #define GUNZIP_OPT_TEST 4 |
76 | #define GUNZIP_OPT_DECOMPRESS 8 | 76 | #define GUNZIP_OPT_DECOMPRESS 8 |
77 | 77 | ||
78 | extern int gunzip_main(int argc, char **argv) | 78 | int gunzip_main(int argc, char **argv) |
79 | { | 79 | { |
80 | char status = EXIT_SUCCESS; | 80 | char status = EXIT_SUCCESS; |
81 | unsigned long opt; | 81 | unsigned long opt; |
diff --git a/archival/libunarchive/archive_xread_all.c b/archival/libunarchive/archive_xread_all.c index ba9ade2d5..ebd64dc14 100644 --- a/archival/libunarchive/archive_xread_all.c +++ b/archival/libunarchive/archive_xread_all.c | |||
@@ -20,7 +20,7 @@ | |||
20 | #include "unarchive.h" | 20 | #include "unarchive.h" |
21 | #include "libbb.h" | 21 | #include "libbb.h" |
22 | 22 | ||
23 | extern void archive_xread_all(const archive_handle_t *archive_handle, void *buf, const size_t count) | 23 | void archive_xread_all(const archive_handle_t *archive_handle, void *buf, const size_t count) |
24 | { | 24 | { |
25 | ssize_t size; | 25 | ssize_t size; |
26 | 26 | ||
diff --git a/archival/libunarchive/archive_xread_all_eof.c b/archival/libunarchive/archive_xread_all_eof.c index f1eea2928..d85879797 100644 --- a/archival/libunarchive/archive_xread_all_eof.c +++ b/archival/libunarchive/archive_xread_all_eof.c | |||
@@ -20,7 +20,7 @@ | |||
20 | #include "unarchive.h" | 20 | #include "unarchive.h" |
21 | #include "libbb.h" | 21 | #include "libbb.h" |
22 | 22 | ||
23 | extern ssize_t archive_xread_all_eof(archive_handle_t *archive_handle, unsigned char *buf, size_t count) | 23 | ssize_t archive_xread_all_eof(archive_handle_t *archive_handle, unsigned char *buf, size_t count) |
24 | { | 24 | { |
25 | ssize_t size; | 25 | ssize_t size; |
26 | 26 | ||
diff --git a/archival/libunarchive/check_header_gzip.c b/archival/libunarchive/check_header_gzip.c index 9e065c4fd..a8ecf3799 100644 --- a/archival/libunarchive/check_header_gzip.c +++ b/archival/libunarchive/check_header_gzip.c | |||
@@ -3,7 +3,7 @@ | |||
3 | #include "libbb.h" | 3 | #include "libbb.h" |
4 | #include "unarchive.h" /* for external decl of check_header_gzip */ | 4 | #include "unarchive.h" /* for external decl of check_header_gzip */ |
5 | 5 | ||
6 | extern void check_header_gzip(int src_fd) | 6 | void check_header_gzip(int src_fd) |
7 | { | 7 | { |
8 | union { | 8 | union { |
9 | unsigned char raw[8]; | 9 | unsigned char raw[8]; |
diff --git a/archival/libunarchive/data_align.c b/archival/libunarchive/data_align.c index 1d433957d..e4a364006 100644 --- a/archival/libunarchive/data_align.c +++ b/archival/libunarchive/data_align.c | |||
@@ -22,7 +22,7 @@ | |||
22 | #include "libbb.h" | 22 | #include "libbb.h" |
23 | #include "unarchive.h" | 23 | #include "unarchive.h" |
24 | 24 | ||
25 | extern void data_align(archive_handle_t *archive_handle, const unsigned short boundary) | 25 | void data_align(archive_handle_t *archive_handle, const unsigned short boundary) |
26 | { | 26 | { |
27 | const unsigned short skip_amount = (boundary - (archive_handle->offset % boundary)) % boundary; | 27 | const unsigned short skip_amount = (boundary - (archive_handle->offset % boundary)) % boundary; |
28 | 28 | ||
diff --git a/archival/libunarchive/data_extract_all.c b/archival/libunarchive/data_extract_all.c index 42e442336..588b081a5 100644 --- a/archival/libunarchive/data_extract_all.c +++ b/archival/libunarchive/data_extract_all.c | |||
@@ -27,7 +27,7 @@ | |||
27 | #include "libbb.h" | 27 | #include "libbb.h" |
28 | #include "unarchive.h" | 28 | #include "unarchive.h" |
29 | 29 | ||
30 | extern void data_extract_all(archive_handle_t *archive_handle) | 30 | void data_extract_all(archive_handle_t *archive_handle) |
31 | { | 31 | { |
32 | file_header_t *file_header = archive_handle->file_header; | 32 | file_header_t *file_header = archive_handle->file_header; |
33 | int dst_fd; | 33 | int dst_fd; |
diff --git a/archival/libunarchive/data_extract_to_buffer.c b/archival/libunarchive/data_extract_to_buffer.c index db5521bcb..1255fe1da 100644 --- a/archival/libunarchive/data_extract_to_buffer.c +++ b/archival/libunarchive/data_extract_to_buffer.c | |||
@@ -17,7 +17,7 @@ | |||
17 | #include "libbb.h" | 17 | #include "libbb.h" |
18 | #include "unarchive.h" | 18 | #include "unarchive.h" |
19 | 19 | ||
20 | extern void data_extract_to_buffer(archive_handle_t *archive_handle) | 20 | void data_extract_to_buffer(archive_handle_t *archive_handle) |
21 | { | 21 | { |
22 | const unsigned int size = archive_handle->file_header->size; | 22 | const unsigned int size = archive_handle->file_header->size; |
23 | 23 | ||
diff --git a/archival/libunarchive/data_extract_to_stdout.c b/archival/libunarchive/data_extract_to_stdout.c index df2bca6ef..f1be5dc67 100644 --- a/archival/libunarchive/data_extract_to_stdout.c +++ b/archival/libunarchive/data_extract_to_stdout.c | |||
@@ -17,7 +17,7 @@ | |||
17 | #include "unarchive.h" | 17 | #include "unarchive.h" |
18 | #include <unistd.h> | 18 | #include <unistd.h> |
19 | 19 | ||
20 | extern void data_extract_to_stdout(archive_handle_t *archive_handle) | 20 | void data_extract_to_stdout(archive_handle_t *archive_handle) |
21 | { | 21 | { |
22 | bb_copyfd_size(archive_handle->src_fd, STDOUT_FILENO, archive_handle->file_header->size); | 22 | bb_copyfd_size(archive_handle->src_fd, STDOUT_FILENO, archive_handle->file_header->size); |
23 | } | 23 | } |
diff --git a/archival/libunarchive/data_skip.c b/archival/libunarchive/data_skip.c index b82c9065b..0c6e26e54 100644 --- a/archival/libunarchive/data_skip.c +++ b/archival/libunarchive/data_skip.c | |||
@@ -21,7 +21,7 @@ | |||
21 | #include "unarchive.h" | 21 | #include "unarchive.h" |
22 | #include "libbb.h" | 22 | #include "libbb.h" |
23 | 23 | ||
24 | extern void data_skip(archive_handle_t *archive_handle) | 24 | void data_skip(archive_handle_t *archive_handle) |
25 | { | 25 | { |
26 | archive_handle->seek(archive_handle, archive_handle->file_header->size); | 26 | archive_handle->seek(archive_handle, archive_handle->file_header->size); |
27 | } | 27 | } |
diff --git a/archival/libunarchive/decompress_bunzip2.c b/archival/libunarchive/decompress_bunzip2.c index 7f700ca7f..88d88b85f 100644 --- a/archival/libunarchive/decompress_bunzip2.c +++ b/archival/libunarchive/decompress_bunzip2.c | |||
@@ -684,7 +684,7 @@ static int start_bunzip(bunzip_data **bdp, int in_fd, unsigned char *inbuf, | |||
684 | /* Example usage: decompress src_fd to dst_fd. (Stops at end of bzip data, | 684 | /* Example usage: decompress src_fd to dst_fd. (Stops at end of bzip data, |
685 | not end of file.) */ | 685 | not end of file.) */ |
686 | 686 | ||
687 | extern int uncompressStream(int src_fd, int dst_fd) | 687 | int uncompressStream(int src_fd, int dst_fd) |
688 | { | 688 | { |
689 | char *outbuf; | 689 | char *outbuf; |
690 | bunzip_data *bd; | 690 | bunzip_data *bd; |
diff --git a/archival/libunarchive/decompress_uncompress.c b/archival/libunarchive/decompress_uncompress.c index c8d8b4af9..539d4ef90 100644 --- a/archival/libunarchive/decompress_uncompress.c +++ b/archival/libunarchive/decompress_uncompress.c | |||
@@ -95,7 +95,7 @@ static unsigned short codetab[HSIZE]; | |||
95 | * with those of the compress() routine. See the definitions above. | 95 | * with those of the compress() routine. See the definitions above. |
96 | */ | 96 | */ |
97 | 97 | ||
98 | extern int uncompress(int fd_in, int fd_out) | 98 | int uncompress(int fd_in, int fd_out) |
99 | { | 99 | { |
100 | unsigned char *stackp; | 100 | unsigned char *stackp; |
101 | long int code; | 101 | long int code; |
diff --git a/archival/libunarchive/decompress_unzip.c b/archival/libunarchive/decompress_unzip.c index ea8169592..7776dee69 100644 --- a/archival/libunarchive/decompress_unzip.c +++ b/archival/libunarchive/decompress_unzip.c | |||
@@ -892,7 +892,7 @@ static int inflate_get_next_window(void) | |||
892 | } | 892 | } |
893 | 893 | ||
894 | /* Initialise bytebuffer, be careful not to overfill the buffer */ | 894 | /* Initialise bytebuffer, be careful not to overfill the buffer */ |
895 | extern void inflate_init(unsigned int bufsize) | 895 | void inflate_init(unsigned int bufsize) |
896 | { | 896 | { |
897 | /* Set the bytebuffer size, default is same as gunzip_wsize */ | 897 | /* Set the bytebuffer size, default is same as gunzip_wsize */ |
898 | bytebuffer_max = bufsize + 8; | 898 | bytebuffer_max = bufsize + 8; |
@@ -900,12 +900,12 @@ extern void inflate_init(unsigned int bufsize) | |||
900 | bytebuffer_size = 0; | 900 | bytebuffer_size = 0; |
901 | } | 901 | } |
902 | 902 | ||
903 | extern void inflate_cleanup(void) | 903 | void inflate_cleanup(void) |
904 | { | 904 | { |
905 | free(bytebuffer); | 905 | free(bytebuffer); |
906 | } | 906 | } |
907 | 907 | ||
908 | extern int inflate_unzip(int in, int out) | 908 | int inflate_unzip(int in, int out) |
909 | { | 909 | { |
910 | ssize_t nwrote; | 910 | ssize_t nwrote; |
911 | typedef void (*sig_type) (int); | 911 | typedef void (*sig_type) (int); |
@@ -952,7 +952,7 @@ extern int inflate_unzip(int in, int out) | |||
952 | return 0; | 952 | return 0; |
953 | } | 953 | } |
954 | 954 | ||
955 | extern int inflate_gunzip(int in, int out) | 955 | int inflate_gunzip(int in, int out) |
956 | { | 956 | { |
957 | unsigned int stored_crc = 0; | 957 | unsigned int stored_crc = 0; |
958 | unsigned int count; | 958 | unsigned int count; |
diff --git a/archival/libunarchive/filter_accept_all.c b/archival/libunarchive/filter_accept_all.c index baf9e4b71..bf5d8aaa9 100644 --- a/archival/libunarchive/filter_accept_all.c +++ b/archival/libunarchive/filter_accept_all.c | |||
@@ -22,7 +22,7 @@ | |||
22 | #include "unarchive.h" | 22 | #include "unarchive.h" |
23 | 23 | ||
24 | /* Accept any non-null name, its not really a filter at all */ | 24 | /* Accept any non-null name, its not really a filter at all */ |
25 | extern char filter_accept_all(archive_handle_t *archive_handle) | 25 | char filter_accept_all(archive_handle_t *archive_handle) |
26 | { | 26 | { |
27 | if (archive_handle->file_header->name) { | 27 | if (archive_handle->file_header->name) { |
28 | return(EXIT_SUCCESS); | 28 | return(EXIT_SUCCESS); |
diff --git a/archival/libunarchive/filter_accept_list.c b/archival/libunarchive/filter_accept_list.c index e1c4827bf..bedd0e178 100644 --- a/archival/libunarchive/filter_accept_list.c +++ b/archival/libunarchive/filter_accept_list.c | |||
@@ -24,7 +24,7 @@ | |||
24 | /* | 24 | /* |
25 | * Accept names that are in the accept list, ignoring reject list. | 25 | * Accept names that are in the accept list, ignoring reject list. |
26 | */ | 26 | */ |
27 | extern char filter_accept_list(archive_handle_t *archive_handle) | 27 | char filter_accept_list(archive_handle_t *archive_handle) |
28 | { | 28 | { |
29 | if (find_list_entry(archive_handle->accept, archive_handle->file_header->name)) { | 29 | if (find_list_entry(archive_handle->accept, archive_handle->file_header->name)) { |
30 | return(EXIT_SUCCESS); | 30 | return(EXIT_SUCCESS); |
diff --git a/archival/libunarchive/filter_accept_list_reassign.c b/archival/libunarchive/filter_accept_list_reassign.c index a09f564a3..5b8385c0d 100644 --- a/archival/libunarchive/filter_accept_list_reassign.c +++ b/archival/libunarchive/filter_accept_list_reassign.c | |||
@@ -28,7 +28,7 @@ | |||
28 | * e.g. if its a .tar.gz modify archive_handle->sub_archive to process a .tar.gz | 28 | * e.g. if its a .tar.gz modify archive_handle->sub_archive to process a .tar.gz |
29 | * or if its a .tar.bz2 make archive_handle->sub_archive handle that | 29 | * or if its a .tar.bz2 make archive_handle->sub_archive handle that |
30 | */ | 30 | */ |
31 | extern char filter_accept_list_reassign(archive_handle_t *archive_handle) | 31 | char filter_accept_list_reassign(archive_handle_t *archive_handle) |
32 | { | 32 | { |
33 | /* Check the file entry is in the accept list */ | 33 | /* Check the file entry is in the accept list */ |
34 | if (find_list_entry(archive_handle->accept, archive_handle->file_header->name)) { | 34 | if (find_list_entry(archive_handle->accept, archive_handle->file_header->name)) { |
diff --git a/archival/libunarchive/filter_accept_reject_list.c b/archival/libunarchive/filter_accept_reject_list.c index 657f7a0bd..1ac414675 100644 --- a/archival/libunarchive/filter_accept_reject_list.c +++ b/archival/libunarchive/filter_accept_reject_list.c | |||
@@ -24,7 +24,7 @@ | |||
24 | /* | 24 | /* |
25 | * Accept names that are in the accept list and not in the reject list | 25 | * Accept names that are in the accept list and not in the reject list |
26 | */ | 26 | */ |
27 | extern char filter_accept_reject_list(archive_handle_t *archive_handle) | 27 | char filter_accept_reject_list(archive_handle_t *archive_handle) |
28 | { | 28 | { |
29 | const char *key = archive_handle->file_header->name; | 29 | const char *key = archive_handle->file_header->name; |
30 | const llist_t *accept_entry = find_list_entry(archive_handle->accept, key); | 30 | const llist_t *accept_entry = find_list_entry(archive_handle->accept, key); |
diff --git a/archival/libunarchive/find_list_entry.c b/archival/libunarchive/find_list_entry.c index 7ed9e332f..d14e51aa7 100644 --- a/archival/libunarchive/find_list_entry.c +++ b/archival/libunarchive/find_list_entry.c | |||
@@ -18,7 +18,7 @@ | |||
18 | #include <stdlib.h> | 18 | #include <stdlib.h> |
19 | #include "unarchive.h" | 19 | #include "unarchive.h" |
20 | 20 | ||
21 | extern const llist_t *find_list_entry(const llist_t *list, const char *filename) | 21 | const llist_t *find_list_entry(const llist_t *list, const char *filename) |
22 | { | 22 | { |
23 | while (list) { | 23 | while (list) { |
24 | if (fnmatch(list->data, filename, 0) == 0) { | 24 | if (fnmatch(list->data, filename, 0) == 0) { |
diff --git a/archival/libunarchive/get_header_ar.c b/archival/libunarchive/get_header_ar.c index e3a71951f..385f33dbf 100644 --- a/archival/libunarchive/get_header_ar.c +++ b/archival/libunarchive/get_header_ar.c | |||
@@ -21,7 +21,7 @@ | |||
21 | #include "unarchive.h" | 21 | #include "unarchive.h" |
22 | #include "libbb.h" | 22 | #include "libbb.h" |
23 | 23 | ||
24 | extern char get_header_ar(archive_handle_t *archive_handle) | 24 | char get_header_ar(archive_handle_t *archive_handle) |
25 | { | 25 | { |
26 | file_header_t *typed = archive_handle->file_header; | 26 | file_header_t *typed = archive_handle->file_header; |
27 | union { | 27 | union { |
diff --git a/archival/libunarchive/get_header_cpio.c b/archival/libunarchive/get_header_cpio.c index bdd80dfea..2bbcd8e5d 100644 --- a/archival/libunarchive/get_header_cpio.c +++ b/archival/libunarchive/get_header_cpio.c | |||
@@ -28,7 +28,7 @@ typedef struct hardlinks_s { | |||
28 | struct hardlinks_s *next; | 28 | struct hardlinks_s *next; |
29 | } hardlinks_t; | 29 | } hardlinks_t; |
30 | 30 | ||
31 | extern char get_header_cpio(archive_handle_t *archive_handle) | 31 | char get_header_cpio(archive_handle_t *archive_handle) |
32 | { | 32 | { |
33 | static hardlinks_t *saved_hardlinks = NULL; | 33 | static hardlinks_t *saved_hardlinks = NULL; |
34 | static unsigned short pending_hardlinks = 0; | 34 | static unsigned short pending_hardlinks = 0; |
diff --git a/archival/libunarchive/get_header_tar.c b/archival/libunarchive/get_header_tar.c index eeabf3f5b..682179a02 100644 --- a/archival/libunarchive/get_header_tar.c +++ b/archival/libunarchive/get_header_tar.c | |||
@@ -22,7 +22,7 @@ static char *longname = NULL; | |||
22 | static char *linkname = NULL; | 22 | static char *linkname = NULL; |
23 | #endif | 23 | #endif |
24 | 24 | ||
25 | extern char get_header_tar(archive_handle_t *archive_handle) | 25 | char get_header_tar(archive_handle_t *archive_handle) |
26 | { | 26 | { |
27 | file_header_t *file_header = archive_handle->file_header; | 27 | file_header_t *file_header = archive_handle->file_header; |
28 | union { | 28 | union { |
diff --git a/archival/libunarchive/get_header_tar_bz2.c b/archival/libunarchive/get_header_tar_bz2.c index d49d6b96a..e874beee1 100644 --- a/archival/libunarchive/get_header_tar_bz2.c +++ b/archival/libunarchive/get_header_tar_bz2.c | |||
@@ -24,7 +24,7 @@ | |||
24 | #include "libbb.h" | 24 | #include "libbb.h" |
25 | #include "unarchive.h" | 25 | #include "unarchive.h" |
26 | 26 | ||
27 | extern char get_header_tar_bz2(archive_handle_t *archive_handle) | 27 | char get_header_tar_bz2(archive_handle_t *archive_handle) |
28 | { | 28 | { |
29 | /* Cant lseek over pipe's */ | 29 | /* Cant lseek over pipe's */ |
30 | archive_handle->seek = seek_by_char; | 30 | archive_handle->seek = seek_by_char; |
diff --git a/archival/libunarchive/get_header_tar_gz.c b/archival/libunarchive/get_header_tar_gz.c index 9c708a951..62df7b268 100644 --- a/archival/libunarchive/get_header_tar_gz.c +++ b/archival/libunarchive/get_header_tar_gz.c | |||
@@ -19,7 +19,7 @@ | |||
19 | #include "libbb.h" | 19 | #include "libbb.h" |
20 | #include "unarchive.h" | 20 | #include "unarchive.h" |
21 | 21 | ||
22 | extern char get_header_tar_gz(archive_handle_t *archive_handle) | 22 | char get_header_tar_gz(archive_handle_t *archive_handle) |
23 | { | 23 | { |
24 | unsigned char magic[2]; | 24 | unsigned char magic[2]; |
25 | 25 | ||
diff --git a/archival/libunarchive/header_list.c b/archival/libunarchive/header_list.c index 5849a762e..36a2d330a 100644 --- a/archival/libunarchive/header_list.c +++ b/archival/libunarchive/header_list.c | |||
@@ -1,7 +1,7 @@ | |||
1 | #include <stdio.h> | 1 | #include <stdio.h> |
2 | #include "unarchive.h" | 2 | #include "unarchive.h" |
3 | 3 | ||
4 | extern void header_list(const file_header_t *file_header) | 4 | void header_list(const file_header_t *file_header) |
5 | { | 5 | { |
6 | puts(file_header->name); | 6 | puts(file_header->name); |
7 | } | 7 | } |
diff --git a/archival/libunarchive/header_skip.c b/archival/libunarchive/header_skip.c index 963d113a4..5b3d46cb8 100644 --- a/archival/libunarchive/header_skip.c +++ b/archival/libunarchive/header_skip.c | |||
@@ -1,6 +1,6 @@ | |||
1 | #include <stdio.h> | 1 | #include <stdio.h> |
2 | #include "unarchive.h" | 2 | #include "unarchive.h" |
3 | 3 | ||
4 | extern void header_skip(const file_header_t *file_header ATTRIBUTE_UNUSED) | 4 | void header_skip(const file_header_t *file_header ATTRIBUTE_UNUSED) |
5 | { | 5 | { |
6 | } | 6 | } |
diff --git a/archival/libunarchive/header_verbose_list.c b/archival/libunarchive/header_verbose_list.c index f7601b732..7dc902e71 100644 --- a/archival/libunarchive/header_verbose_list.c +++ b/archival/libunarchive/header_verbose_list.c | |||
@@ -4,7 +4,7 @@ | |||
4 | #include "libbb.h" | 4 | #include "libbb.h" |
5 | #include "unarchive.h" | 5 | #include "unarchive.h" |
6 | 6 | ||
7 | extern void header_verbose_list(const file_header_t *file_header) | 7 | void header_verbose_list(const file_header_t *file_header) |
8 | { | 8 | { |
9 | struct tm *mtime = localtime(&(file_header->mtime)); | 9 | struct tm *mtime = localtime(&(file_header->mtime)); |
10 | 10 | ||
diff --git a/archival/libunarchive/open_transformer.c b/archival/libunarchive/open_transformer.c index fb149fc0b..0d362a5ab 100644 --- a/archival/libunarchive/open_transformer.c +++ b/archival/libunarchive/open_transformer.c | |||
@@ -20,7 +20,7 @@ | |||
20 | #include "libbb.h" | 20 | #include "libbb.h" |
21 | 21 | ||
22 | /* transformer(), more than meets the eye */ | 22 | /* transformer(), more than meets the eye */ |
23 | extern int open_transformer(int src_fd, int (*transformer)(int src_fd, int dst_fd)) | 23 | int open_transformer(int src_fd, int (*transformer)(int src_fd, int dst_fd)) |
24 | { | 24 | { |
25 | int fd_pipe[2]; | 25 | int fd_pipe[2]; |
26 | int pid; | 26 | int pid; |
diff --git a/archival/libunarchive/seek_by_char.c b/archival/libunarchive/seek_by_char.c index a50d566f5..02874db51 100644 --- a/archival/libunarchive/seek_by_char.c +++ b/archival/libunarchive/seek_by_char.c | |||
@@ -24,7 +24,7 @@ | |||
24 | * | 24 | * |
25 | * TODO: rename to seek_by_read | 25 | * TODO: rename to seek_by_read |
26 | */ | 26 | */ |
27 | extern void seek_by_char(const archive_handle_t *archive_handle, const unsigned int jump_size) | 27 | void seek_by_char(const archive_handle_t *archive_handle, const unsigned int jump_size) |
28 | { | 28 | { |
29 | if (jump_size) { | 29 | if (jump_size) { |
30 | bb_copyfd_size(archive_handle->src_fd, -1, jump_size); | 30 | bb_copyfd_size(archive_handle->src_fd, -1, jump_size); |
diff --git a/archival/libunarchive/seek_by_jump.c b/archival/libunarchive/seek_by_jump.c index 578870d9b..fb99b26a7 100644 --- a/archival/libunarchive/seek_by_jump.c +++ b/archival/libunarchive/seek_by_jump.c | |||
@@ -22,7 +22,7 @@ | |||
22 | #include "libbb.h" | 22 | #include "libbb.h" |
23 | #include "unarchive.h" | 23 | #include "unarchive.h" |
24 | 24 | ||
25 | extern void seek_by_jump(const archive_handle_t *archive_handle, const unsigned int amount) | 25 | void seek_by_jump(const archive_handle_t *archive_handle, const unsigned int amount) |
26 | { | 26 | { |
27 | if (lseek(archive_handle->src_fd, (off_t) amount, SEEK_CUR) == (off_t) -1) { | 27 | if (lseek(archive_handle->src_fd, (off_t) amount, SEEK_CUR) == (off_t) -1) { |
28 | #ifdef CONFIG_FEATURE_UNARCHIVE_TAPE | 28 | #ifdef CONFIG_FEATURE_UNARCHIVE_TAPE |
diff --git a/archival/libunarchive/unpack_ar_archive.c b/archival/libunarchive/unpack_ar_archive.c index fa48c6fca..7bb40af5b 100644 --- a/archival/libunarchive/unpack_ar_archive.c +++ b/archival/libunarchive/unpack_ar_archive.c | |||
@@ -19,7 +19,7 @@ | |||
19 | #include "unarchive.h" | 19 | #include "unarchive.h" |
20 | #include "busybox.h" | 20 | #include "busybox.h" |
21 | 21 | ||
22 | extern void unpack_ar_archive(archive_handle_t *ar_archive) | 22 | void unpack_ar_archive(archive_handle_t *ar_archive) |
23 | { | 23 | { |
24 | char magic[7]; | 24 | char magic[7]; |
25 | 25 | ||
diff --git a/archival/rpm2cpio.c b/archival/rpm2cpio.c index 8316d2242..45a660113 100644 --- a/archival/rpm2cpio.c +++ b/archival/rpm2cpio.c | |||
@@ -66,7 +66,7 @@ static void skip_header(int rpm_fd) | |||
66 | } | 66 | } |
67 | 67 | ||
68 | /* No getopt required */ | 68 | /* No getopt required */ |
69 | extern int rpm2cpio_main(int argc, char **argv) | 69 | int rpm2cpio_main(int argc, char **argv) |
70 | { | 70 | { |
71 | struct rpm_lead lead; | 71 | struct rpm_lead lead; |
72 | int rpm_fd; | 72 | int rpm_fd; |
diff --git a/archival/uncompress.c b/archival/uncompress.c index 3bd87093e..8a874d09d 100644 --- a/archival/uncompress.c +++ b/archival/uncompress.c | |||
@@ -30,7 +30,7 @@ | |||
30 | #define GUNZIP_TO_STDOUT 1 | 30 | #define GUNZIP_TO_STDOUT 1 |
31 | #define GUNZIP_FORCE 2 | 31 | #define GUNZIP_FORCE 2 |
32 | 32 | ||
33 | extern int uncompress_main(int argc, char **argv) | 33 | int uncompress_main(int argc, char **argv) |
34 | { | 34 | { |
35 | int status = EXIT_SUCCESS; | 35 | int status = EXIT_SUCCESS; |
36 | unsigned long flags; | 36 | unsigned long flags; |
diff --git a/archival/unzip.c b/archival/unzip.c index f95e31206..9cf987664 100644 --- a/archival/unzip.c +++ b/archival/unzip.c | |||
@@ -125,7 +125,7 @@ static void unzip_extract(zip_header_t *zip_header, int src_fd, int dst_fd) | |||
125 | } | 125 | } |
126 | } | 126 | } |
127 | 127 | ||
128 | extern int unzip_main(int argc, char **argv) | 128 | int unzip_main(int argc, char **argv) |
129 | { | 129 | { |
130 | zip_header_t zip_header; | 130 | zip_header_t zip_header; |
131 | enum {v_silent, v_normal, v_list} verbosity = v_normal; | 131 | enum {v_silent, v_normal, v_list} verbosity = v_normal; |