summaryrefslogtreecommitdiff
path: root/archival
diff options
context:
space:
mode:
authorDenis Vlasenko2007-02-03 17:28:39 +0000
committerDenis Vlasenko2007-02-03 17:28:39 +0000
commit06af2165288cd6516b89001ec9e24992619230e0 (patch)
tree840d22e507465aa6eb27c30c7ab8e80d9c469ae0 /archival
parentc7ba8b9d6c926231c1c191136b1ea0bc14b87771 (diff)
downloadbusybox-06af2165288cd6516b89001ec9e24992619230e0.zip
busybox-06af2165288cd6516b89001ec9e24992619230e0.tar.gz
suppress warnings about easch <applet>_main() having
no preceding prototype
Diffstat (limited to 'archival')
-rw-r--r--archival/ar.c1
-rw-r--r--archival/bunzip2.c1
-rw-r--r--archival/cpio.c1
-rw-r--r--archival/dpkg.c1
-rw-r--r--archival/dpkg_deb.c1
-rw-r--r--archival/gunzip.c1
-rw-r--r--archival/gzip.c1
-rw-r--r--archival/rpm.c1
-rw-r--r--archival/rpm2cpio.c1
-rw-r--r--archival/tar.c1
-rw-r--r--archival/uncompress.c1
-rw-r--r--archival/unlzma.c1
-rw-r--r--archival/unzip.c1
13 files changed, 13 insertions, 0 deletions
diff --git a/archival/ar.c b/archival/ar.c
index 4bcf694..23d9b49 100644
--- a/archival/ar.c
+++ b/archival/ar.c
@@ -38,6 +38,7 @@ static void header_verbose_list_ar(const file_header_t *file_header)
#define AR_OPT_CREATE 0x20
#define AR_OPT_INSERT 0x40
+int ar_main(int argc, char **argv);
int ar_main(int argc, char **argv)
{
archive_handle_t *archive_handle;
diff --git a/archival/bunzip2.c b/archival/bunzip2.c
index a6cd176..1deac7b 100644
--- a/archival/bunzip2.c
+++ b/archival/bunzip2.c
@@ -12,6 +12,7 @@
#define BUNZIP2_OPT_STDOUT 1
#define BUNZIP2_OPT_FORCE 2
+int bunzip2_main(int argc, char **argv);
int bunzip2_main(int argc, char **argv)
{
USE_DESKTOP(long long) int status;
diff --git a/archival/cpio.c b/archival/cpio.c
index 73651ba..0113867 100644
--- a/archival/cpio.c
+++ b/archival/cpio.c
@@ -26,6 +26,7 @@
#define CPIO_OPT_CREATE_LEADING_DIR 0x20
#define CPIO_OPT_PRESERVE_MTIME 0x40
+int cpio_main(int argc, char **argv);
int cpio_main(int argc, char **argv)
{
archive_handle_t *archive_handle;
diff --git a/archival/dpkg.c b/archival/dpkg.c
index 126138f..5c69d9c 100644
--- a/archival/dpkg.c
+++ b/archival/dpkg.c
@@ -1566,6 +1566,7 @@ static void configure_package(deb_file_t *deb_file)
set_status(status_num, "installed", 3);
}
+int dpkg_main(int argc, char **argv);
int dpkg_main(int argc, char **argv)
{
deb_file_t **deb_file = NULL;
diff --git a/archival/dpkg_deb.c b/archival/dpkg_deb.c
index c9b8a04..fde3c33 100644
--- a/archival/dpkg_deb.c
+++ b/archival/dpkg_deb.c
@@ -13,6 +13,7 @@
#define DPKG_DEB_OPT_EXTRACT 8
#define DPKG_DEB_OPT_EXTRACT_VERBOSE 16
+int dpkg_deb_main(int argc, char **argv);
int dpkg_deb_main(int argc, char **argv)
{
archive_handle_t *ar_archive;
diff --git a/archival/gunzip.c b/archival/gunzip.c
index c5deec3..3d99fe5 100644
--- a/archival/gunzip.c
+++ b/archival/gunzip.c
@@ -36,6 +36,7 @@
#define GUNZIP_OPT_DECOMPRESS 8
#define GUNZIP_OPT_VERBOSE 0x10
+int gunzip_main(int argc, char **argv);
int gunzip_main(int argc, char **argv)
{
USE_DESKTOP(long long) int status;
diff --git a/archival/gzip.c b/archival/gzip.c
index 2b520b3..48d1652 100644
--- a/archival/gzip.c
+++ b/archival/gzip.c
@@ -2086,6 +2086,7 @@ static void abort_gzip(int ATTRIBUTE_UNUSED ignored)
exit(1);
}
+int gzip_main(int argc, char **argv);
int gzip_main(int argc, char **argv)
{
enum {
diff --git a/archival/rpm.c b/archival/rpm.c
index deb87c1..9ab12df 100644
--- a/archival/rpm.c
+++ b/archival/rpm.c
@@ -80,6 +80,7 @@ static void fileaction_dobackup(char *filename, int fileref);
static void fileaction_setowngrp(char *filename, int fileref);
static void loop_through_files(int filetag, void (*fileaction)(char *filename, int fileref));
+int rpm_main(int argc, char **argv);
int rpm_main(int argc, char **argv)
{
int opt = 0, func = 0, rpm_fd, offset;
diff --git a/archival/rpm2cpio.c b/archival/rpm2cpio.c
index 3442046..7a2e64b 100644
--- a/archival/rpm2cpio.c
+++ b/archival/rpm2cpio.c
@@ -49,6 +49,7 @@ static void skip_header(int rpm_fd)
}
/* No getopt required */
+int rpm2cpio_main(int argc, char **argv);
int rpm2cpio_main(int argc, char **argv)
{
struct rpm_lead lead;
diff --git a/archival/tar.c b/archival/tar.c
index 6c15f65..8bb8459 100644
--- a/archival/tar.c
+++ b/archival/tar.c
@@ -752,6 +752,7 @@ static const struct option tar_long_options[] = {
};
#endif
+int tar_main(int argc, char **argv);
int tar_main(int argc, char **argv)
{
char (*get_header_ptr)(archive_handle_t *) = get_header_tar;
diff --git a/archival/uncompress.c b/archival/uncompress.c
index 4611790..b16c353 100644
--- a/archival/uncompress.c
+++ b/archival/uncompress.c
@@ -11,6 +11,7 @@
#define GUNZIP_TO_STDOUT 1
#define GUNZIP_FORCE 2
+int uncompress_main(int argc, char **argv);
int uncompress_main(int argc, char **argv)
{
int status = EXIT_SUCCESS;
diff --git a/archival/unlzma.c b/archival/unlzma.c
index 20c4ff2..24632c4 100644
--- a/archival/unlzma.c
+++ b/archival/unlzma.c
@@ -15,6 +15,7 @@
#define UNLZMA_OPT_STDOUT 1
+int unlzma_main(int argc, char **argv);
int unlzma_main(int argc, char **argv)
{
USE_DESKTOP(long long) int status;
diff --git a/archival/unzip.c b/archival/unzip.c
index b10132e..5e63170 100644
--- a/archival/unzip.c
+++ b/archival/unzip.c
@@ -93,6 +93,7 @@ static int unzip_extract(zip_header_t *zip_header, int src_fd, int dst_fd)
return 0;
}
+int unzip_main(int argc, char **argv);
int unzip_main(int argc, char **argv)
{
zip_header_t zip_header;