aboutsummaryrefslogtreecommitdiff
path: root/util-linux
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-02-03 17:28:39 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-02-03 17:28:39 +0000
commit06af2165288cd6516b89001ec9e24992619230e0 (patch)
tree840d22e507465aa6eb27c30c7ab8e80d9c469ae0 /util-linux
parentc7ba8b9d6c926231c1c191136b1ea0bc14b87771 (diff)
downloadbusybox-06af2165288cd6516b89001ec9e24992619230e0.tar.gz
suppress warnings about easch <applet>_main() having
no preceding prototype
Diffstat (limited to 'util-linux')
-rw-r--r--util-linux/dmesg.c1
-rw-r--r--util-linux/fbset.c1
-rw-r--r--util-linux/fdformat.c1
-rw-r--r--util-linux/fdisk.c1
-rw-r--r--util-linux/freeramdisk.c1
-rw-r--r--util-linux/fsck_minix.c1
-rw-r--r--util-linux/getopt.c1
-rw-r--r--util-linux/hexdump.c1
-rw-r--r--util-linux/hwclock.c1
-rw-r--r--util-linux/ipcrm.c1
-rw-r--r--util-linux/ipcs.c1
-rw-r--r--util-linux/losetup.c1
-rw-r--r--util-linux/mdev.c1
-rw-r--r--util-linux/mkfs_minix.c1
-rw-r--r--util-linux/mkswap.c1
-rw-r--r--util-linux/more.c1
-rw-r--r--util-linux/mount.c1
-rw-r--r--util-linux/pivot_root.c1
-rw-r--r--util-linux/rdate.c1
-rw-r--r--util-linux/readprofile.c1
-rw-r--r--util-linux/setarch.c1
-rw-r--r--util-linux/swaponoff.c1
-rw-r--r--util-linux/switch_root.c1
-rw-r--r--util-linux/umount.c1
24 files changed, 24 insertions, 0 deletions
diff --git a/util-linux/dmesg.c b/util-linux/dmesg.c
index 658cddc38..0bbc306fc 100644
--- a/util-linux/dmesg.c
+++ b/util-linux/dmesg.c
@@ -13,6 +13,7 @@
#include <unistd.h>
#include <sys/klog.h>
+int dmesg_main(int argc, char *argv[]);
int dmesg_main(int argc, char *argv[])
{
char *size, *level;
diff --git a/util-linux/fbset.c b/util-linux/fbset.c
index 94d04b12a..bd584e460 100644
--- a/util-linux/fbset.c
+++ b/util-linux/fbset.c
@@ -309,6 +309,7 @@ static inline void showmode(struct fb_var_screeninfo *v)
#ifdef STANDALONE
int main(int argc, char **argv)
#else
+int fbset_main(int argc, char **argv);
int fbset_main(int argc, char **argv)
#endif
{
diff --git a/util-linux/fdformat.c b/util-linux/fdformat.c
index 0242d8d3a..d694bd631 100644
--- a/util-linux/fdformat.c
+++ b/util-linux/fdformat.c
@@ -52,6 +52,7 @@ static void xioctl(int fd, int request, void *argp, const char *string)
}
}
+int fdformat_main(int argc,char **argv);
int fdformat_main(int argc,char **argv)
{
int fd, n, cyl, read_bytes, verify;
diff --git a/util-linux/fdisk.c b/util-linux/fdisk.c
index 6d827105e..66acb088f 100644
--- a/util-linux/fdisk.c
+++ b/util-linux/fdisk.c
@@ -2784,6 +2784,7 @@ unknown_command(int c)
}
#endif
+int fdisk_main(int argc, char **argv);
int fdisk_main(int argc, char **argv)
{
char *str_b, *str_C, *str_H, *str_S;
diff --git a/util-linux/freeramdisk.c b/util-linux/freeramdisk.c
index 2293d3ee6..ae341b066 100644
--- a/util-linux/freeramdisk.c
+++ b/util-linux/freeramdisk.c
@@ -14,6 +14,7 @@
/* From <linux/fd.h> */
#define FDFLUSH _IO(2,0x4b)
+int freeramdisk_main(int argc, char **argv);
int freeramdisk_main(int argc, char **argv)
{
int result;
diff --git a/util-linux/fsck_minix.c b/util-linux/fsck_minix.c
index 4e9365116..049bda4cc 100644
--- a/util-linux/fsck_minix.c
+++ b/util-linux/fsck_minix.c
@@ -1207,6 +1207,7 @@ static void check2(void)
void check2(void);
#endif
+int fsck_minix_main(int argc, char **argv);
int fsck_minix_main(int argc, char **argv)
{
struct termios tmp;
diff --git a/util-linux/getopt.c b/util-linux/getopt.c
index 64f568aa9..4861990dd 100644
--- a/util-linux/getopt.c
+++ b/util-linux/getopt.c
@@ -288,6 +288,7 @@ static const struct option longopts[]=
static const char shortopts[]="+ao:l:n:qQs:Tu";
+int getopt_main(int argc, char *argv[]);
int getopt_main(int argc, char *argv[])
{
const char *optstr = NULL;
diff --git a/util-linux/hexdump.c b/util-linux/hexdump.c
index 5cb245feb..cddd185e2 100644
--- a/util-linux/hexdump.c
+++ b/util-linux/hexdump.c
@@ -51,6 +51,7 @@ static const struct suffix_mult suffixes[] = {
{NULL, 0 }
};
+int hexdump_main(int argc, char **argv);
int hexdump_main(int argc, char **argv)
{
const char *p;
diff --git a/util-linux/hwclock.c b/util-linux/hwclock.c
index 8fcd8c99c..ca4238f9e 100644
--- a/util-linux/hwclock.c
+++ b/util-linux/hwclock.c
@@ -176,6 +176,7 @@ static int check_utc(void)
#define HWCLOCK_OPT_HCTOSYS 0x08
#define HWCLOCK_OPT_SYSTOHC 0x10
+int hwclock_main(int argc, char **argv );
int hwclock_main(int argc, char **argv )
{
unsigned opt;
diff --git a/util-linux/ipcrm.c b/util-linux/ipcrm.c
index 886c2efbd..9240e2c4b 100644
--- a/util-linux/ipcrm.c
+++ b/util-linux/ipcrm.c
@@ -73,6 +73,7 @@ static int remove_ids(type_id type, int argc, char **argv)
#endif /* #ifndef CONFIG_IPCRM_DROP_LEGACY */
+int ipcrm_main(int argc, char **argv);
int ipcrm_main(int argc, char **argv)
{
int c;
diff --git a/util-linux/ipcs.c b/util-linux/ipcs.c
index b81d07d6d..5a7b22434 100644
--- a/util-linux/ipcs.c
+++ b/util-linux/ipcs.c
@@ -568,6 +568,7 @@ static void print_sem(int semid)
puts("");
}
+int ipcs_main(int argc, char **argv);
int ipcs_main(int argc, char **argv)
{
int id = 0;
diff --git a/util-linux/losetup.c b/util-linux/losetup.c
index c7eb85a91..b220c9878 100644
--- a/util-linux/losetup.c
+++ b/util-linux/losetup.c
@@ -12,6 +12,7 @@
#include "busybox.h"
+int losetup_main(int argc, char **argv);
int losetup_main(int argc, char **argv)
{
unsigned opt;
diff --git a/util-linux/mdev.c b/util-linux/mdev.c
index 4a0e9f9fd..f9f067dfe 100644
--- a/util-linux/mdev.c
+++ b/util-linux/mdev.c
@@ -230,6 +230,7 @@ static void find_dev(char *path)
closedir(dir);
}
+int mdev_main(int argc, char *argv[]);
int mdev_main(int argc, char *argv[])
{
char *action;
diff --git a/util-linux/mkfs_minix.c b/util-linux/mkfs_minix.c
index e66ef7e17..7257ddb87 100644
--- a/util-linux/mkfs_minix.c
+++ b/util-linux/mkfs_minix.c
@@ -587,6 +587,7 @@ static void get_list_blocks(char *filename)
printf("%d bad block(s)\n", badblocks);
}
+int mkfs_minix_main(int argc, char **argv);
int mkfs_minix_main(int argc, char **argv)
{
struct mntent *mp;
diff --git a/util-linux/mkswap.c b/util-linux/mkswap.c
index 7baa3ecfb..ac894d50a 100644
--- a/util-linux/mkswap.c
+++ b/util-linux/mkswap.c
@@ -8,6 +8,7 @@
#include "busybox.h"
+int mkswap_main(int argc, char *argv[]);
int mkswap_main(int argc, char *argv[])
{
int fd, pagesize;
diff --git a/util-linux/more.c b/util-linux/more.c
index d048ace92..d00cb40b8 100644
--- a/util-linux/more.c
+++ b/util-linux/more.c
@@ -38,6 +38,7 @@ static void gotsig(int sig)
#endif /* FEATURE_USE_TERMIOS */
+int more_main(int argc, char **argv);
int more_main(int argc, char **argv)
{
int c, lines, input = 0;
diff --git a/util-linux/mount.c b/util-linux/mount.c
index ba98519b6..702c0338a 100644
--- a/util-linux/mount.c
+++ b/util-linux/mount.c
@@ -1524,6 +1524,7 @@ report_error:
const char must_be_root[] = "you must be root";
+int mount_main(int argc, char **argv);
int mount_main(int argc, char **argv)
{
enum { OPT_ALL = 0x10 };
diff --git a/util-linux/pivot_root.c b/util-linux/pivot_root.c
index bd02302c7..97c7fa85e 100644
--- a/util-linux/pivot_root.c
+++ b/util-linux/pivot_root.c
@@ -12,6 +12,7 @@
extern int pivot_root(const char * new_root,const char * put_old);
+int pivot_root_main(int argc, char **argv);
int pivot_root_main(int argc, char **argv)
{
if (argc != 3)
diff --git a/util-linux/rdate.c b/util-linux/rdate.c
index d6d1384f7..33cf64efb 100644
--- a/util-linux/rdate.c
+++ b/util-linux/rdate.c
@@ -42,6 +42,7 @@ static time_t askremotedate(const char *host)
return ntohl(nett) - RFC_868_BIAS;
}
+int rdate_main(int argc, char **argv);
int rdate_main(int argc, char **argv)
{
time_t remote_time;
diff --git a/util-linux/readprofile.c b/util-linux/readprofile.c
index dd810f021..a17b9c880 100644
--- a/util-linux/readprofile.c
+++ b/util-linux/readprofile.c
@@ -41,6 +41,7 @@
static const char defaultmap[] = "/boot/System.map";
static const char defaultpro[] = "/proc/profile";
+int readprofile_main(int argc, char **argv);
int readprofile_main(int argc, char **argv)
{
FILE *map;
diff --git a/util-linux/setarch.c b/util-linux/setarch.c
index d7e1c0917..8f4e308d4 100644
--- a/util-linux/setarch.c
+++ b/util-linux/setarch.c
@@ -16,6 +16,7 @@
#include "busybox.h"
+int setarch_main(int ATTRIBUTE_UNUSED argc, char **argv);
int setarch_main(int ATTRIBUTE_UNUSED argc, char **argv)
{
int pers = -1;
diff --git a/util-linux/swaponoff.c b/util-linux/swaponoff.c
index 8434d121c..e1de4eb0c 100644
--- a/util-linux/swaponoff.c
+++ b/util-linux/swaponoff.c
@@ -59,6 +59,7 @@ static int do_em_all(void)
#define DO_ALL 0x01
+int swap_on_off_main(int argc, char **argv);
int swap_on_off_main(int argc, char **argv)
{
int ret;
diff --git a/util-linux/switch_root.c b/util-linux/switch_root.c
index 007083bef..5a01fd6f7 100644
--- a/util-linux/switch_root.c
+++ b/util-linux/switch_root.c
@@ -63,6 +63,7 @@ static void delete_contents(const char *directory)
} else unlink(directory);
}
+int switch_root_main(int argc, char *argv[]);
int switch_root_main(int argc, char *argv[])
{
char *newroot, *console=NULL;
diff --git a/util-linux/umount.c b/util-linux/umount.c
index 6ba72aed1..4ea15d91b 100644
--- a/util-linux/umount.c
+++ b/util-linux/umount.c
@@ -20,6 +20,7 @@
#define OPT_REMOUNT 16
#define OPT_ALL (ENABLE_FEATURE_UMOUNT_ALL ? 32 : 0)
+int umount_main(int argc, char **argv);
int umount_main(int argc, char **argv)
{
int doForce;