diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-02-03 17:28:39 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-02-03 17:28:39 +0000 |
commit | 06af2165288cd6516b89001ec9e24992619230e0 (patch) | |
tree | 840d22e507465aa6eb27c30c7ab8e80d9c469ae0 /networking | |
parent | c7ba8b9d6c926231c1c191136b1ea0bc14b87771 (diff) | |
download | busybox-06af2165288cd6516b89001ec9e24992619230e0.tar.gz |
suppress warnings about easch <applet>_main() having
no preceding prototype
Diffstat (limited to 'networking')
35 files changed, 40 insertions, 6 deletions
diff --git a/networking/arp.c b/networking/arp.c index 33191d89b..2af6bc970 100644 --- a/networking/arp.c +++ b/networking/arp.c @@ -441,6 +441,7 @@ static int arp_show(char *name) return 0; } +int arp_main(int argc, char **argv); int arp_main(int argc, char **argv) { char *hw_type; diff --git a/networking/arping.c b/networking/arping.c index 7bab0d048..20c782f55 100644 --- a/networking/arping.c +++ b/networking/arping.c @@ -238,6 +238,7 @@ static int recv_pack(unsigned char *buf, int len, struct sockaddr_ll *FROM) return 1; } +int arping_main(int argc, char **argv); int arping_main(int argc, char **argv) { const char *device = "eth0"; diff --git a/networking/dnsd.c b/networking/dnsd.c index 6a866f1d7..6d1335e67 100644 --- a/networking/dnsd.c +++ b/networking/dnsd.c @@ -330,6 +330,7 @@ static void interrupt(int x) exit(2); } +int dnsd_main(int argc, char **argv); int dnsd_main(int argc, char **argv) { char *listen_interface = NULL; diff --git a/networking/ether-wake.c b/networking/ether-wake.c index f923149b9..73f693e7f 100644 --- a/networking/ether-wake.c +++ b/networking/ether-wake.c @@ -105,6 +105,7 @@ static inline void get_dest_addr(const char *arg, struct ether_addr *eaddr); static inline int get_fill(unsigned char *pkt, struct ether_addr *eaddr, int broadcast); static inline int get_wol_pw(const char *ethoptarg, unsigned char *wol_passwd); +int ether_wake_main(int argc, char *argv[]); int ether_wake_main(int argc, char *argv[]) { const char *ifname = "eth0"; diff --git a/networking/ftpgetput.c b/networking/ftpgetput.c index 590b7ebcd..dad1c9947 100644 --- a/networking/ftpgetput.c +++ b/networking/ftpgetput.c @@ -297,6 +297,7 @@ static const struct option ftpgetput_long_options[] = { }; #endif +int ftpgetput_main(int argc, char **argv); int ftpgetput_main(int argc, char **argv) { /* content-length of the file */ diff --git a/networking/hostname.c b/networking/hostname.c index 45aaaa465..3f6a658d6 100644 --- a/networking/hostname.c +++ b/networking/hostname.c @@ -41,6 +41,7 @@ static void do_sethostname(char *s, int isfile) } } +int hostname_main(int argc, char **argv); int hostname_main(int argc, char **argv) { enum { diff --git a/networking/httpd.c b/networking/httpd.c index e3f798c4c..fb363c56f 100644 --- a/networking/httpd.c +++ b/networking/httpd.c @@ -1902,6 +1902,7 @@ static const char httpd_opts[] = "c:d:h:" "p:if"; +int httpd_main(int argc, char *argv[]); int httpd_main(int argc, char *argv[]) { unsigned opt; diff --git a/networking/ifconfig.c b/networking/ifconfig.c index 9cdd41c3a..b36f86d6a 100644 --- a/networking/ifconfig.c +++ b/networking/ifconfig.c @@ -261,6 +261,7 @@ static int in_ether(const char *bufp, struct sockaddr *sap); * Our main function. */ +int ifconfig_main(int argc, char **argv); int ifconfig_main(int argc, char **argv) { struct ifreq ifr; diff --git a/networking/ifupdown.c b/networking/ifupdown.c index 834c7fa7d..ce3b9bab7 100644 --- a/networking/ifupdown.c +++ b/networking/ifupdown.c @@ -1083,6 +1083,7 @@ static llist_t *find_iface_state(llist_t *state_list, const char *iface) return NULL; } +int ifupdown_main(int argc, char **argv); int ifupdown_main(int argc, char **argv) { int (*cmds)(struct interface_defn_t *) = NULL; diff --git a/networking/inetd.c b/networking/inetd.c index 5e7005e9b..c037d114a 100644 --- a/networking/inetd.c +++ b/networking/inetd.c @@ -1246,8 +1246,8 @@ inetd_setproctitle(char *a, int s) #endif -int -inetd_main(int argc, char *argv[]) +int inetd_main(int argc, char *argv[]); +int inetd_main(int argc, char *argv[]) { servtab_t *sep; struct passwd *pwd; diff --git a/networking/ip.c b/networking/ip.c index 7a7f55c46..fdd848049 100644 --- a/networking/ip.c +++ b/networking/ip.c @@ -17,6 +17,7 @@ #include "libiproute/utils.h" #include "libiproute/ip_common.h" +int ip_main(int argc, char **argv); int ip_main(int argc, char **argv) { int ret = EXIT_FAILURE; diff --git a/networking/ipaddr.c b/networking/ipaddr.c index c90780879..fb0213702 100644 --- a/networking/ipaddr.c +++ b/networking/ipaddr.c @@ -17,6 +17,7 @@ #include "busybox.h" +int ipaddr_main(int argc, char **argv); int ipaddr_main(int argc, char **argv) { ip_parse_common_args(&argc, &argv); diff --git a/networking/ipcalc.c b/networking/ipcalc.c index 685f0e315..63ce99ffe 100644 --- a/networking/ipcalc.c +++ b/networking/ipcalc.c @@ -76,6 +76,7 @@ int get_prefix(unsigned long netmask); }; #endif +int ipcalc_main(int argc, char **argv); int ipcalc_main(int argc, char **argv) { unsigned opt; diff --git a/networking/iplink.c b/networking/iplink.c index 4a28c74a9..54087e927 100644 --- a/networking/iplink.c +++ b/networking/iplink.c @@ -17,6 +17,7 @@ #include "busybox.h" +int iplink_main(int argc, char **argv); int iplink_main(int argc, char **argv) { ip_parse_common_args(&argc, &argv); diff --git a/networking/iproute.c b/networking/iproute.c index 62335a8b3..3d540b2ba 100644 --- a/networking/iproute.c +++ b/networking/iproute.c @@ -17,6 +17,7 @@ #include "busybox.h" +int iproute_main(int argc, char **argv); int iproute_main(int argc, char **argv) { ip_parse_common_args(&argc, &argv); diff --git a/networking/iprule.c b/networking/iprule.c index 43eaea633..9c1fb50de 100644 --- a/networking/iprule.c +++ b/networking/iprule.c @@ -17,6 +17,7 @@ #include "busybox.h" +int iprule_main(int argc, char **argv); int iprule_main(int argc, char **argv) { ip_parse_common_args(&argc, &argv); diff --git a/networking/iptunnel.c b/networking/iptunnel.c index 9ae734a21..8a65413b6 100644 --- a/networking/iptunnel.c +++ b/networking/iptunnel.c @@ -17,6 +17,7 @@ #include "busybox.h" +int iptunnel_main(int argc, char **argv); int iptunnel_main(int argc, char **argv) { ip_parse_common_args(&argc, &argv); diff --git a/networking/isrv_identd.c b/networking/isrv_identd.c index 2d4399cea..f9ab0b2c0 100644 --- a/networking/isrv_identd.c +++ b/networking/isrv_identd.c @@ -92,6 +92,7 @@ static void inetd_mode(void) while (do_rd(0, (void*)&buf) == 0); } +int fakeidentd_main(int argc, char **argv); int fakeidentd_main(int argc, char **argv) { enum { diff --git a/networking/nameif.c b/networking/nameif.c index 52aad2873..ec77512c3 100644 --- a/networking/nameif.c +++ b/networking/nameif.c @@ -55,6 +55,7 @@ static struct ether_addr *cc_macaddr(const char *str_macaddr) return mac; } +int nameif_main(int argc, char **argv); int nameif_main(int argc, char **argv) { mactable_t *clist = NULL; diff --git a/networking/nc.c b/networking/nc.c index dc9102b2a..c1e881162 100644 --- a/networking/nc.c +++ b/networking/nc.c @@ -18,6 +18,7 @@ static void timeout(int signum) bb_error_msg_and_die("timed out"); } +int nc_main(int argc, char **argv); int nc_main(int argc, char **argv) { /* sfd sits _here_ only because of "repeat" option (-l -l). */ diff --git a/networking/netstat.c b/networking/netstat.c index a5631c3c0..d89d3aa5a 100644 --- a/networking/netstat.c +++ b/networking/netstat.c @@ -510,6 +510,7 @@ static void do_info(const char *file, const char *name, void (*proc)(int, const * Our main function. */ +int netstat_main(int argc, char **argv); int netstat_main(int argc, char **argv) { enum { diff --git a/networking/nslookup.c b/networking/nslookup.c index 914f3f5ee..14c05b3e6 100644 --- a/networking/nslookup.c +++ b/networking/nslookup.c @@ -128,6 +128,7 @@ static void set_default_dns(char *server) } } +int nslookup_main(int argc, char **argv); int nslookup_main(int argc, char **argv) { /* We allow 1 or 2 arguments. diff --git a/networking/ping.c b/networking/ping.c index ba4f585db..d0e6f3ad1 100644 --- a/networking/ping.c +++ b/networking/ping.c @@ -185,6 +185,7 @@ static void ping6(len_and_sockaddr *lsa) } #endif +int ping_main(int argc, char **argv); int ping_main(int argc, char **argv) { len_and_sockaddr *lsa; @@ -715,6 +716,7 @@ static int parse_nipquad(const char *str, struct sockaddr_in* addr) return 1; /* error */ } +int ping_main(int argc, char **argv); int ping_main(int argc, char **argv) { len_and_sockaddr *lsa; @@ -759,6 +761,7 @@ int ping_main(int argc, char **argv) #if ENABLE_PING6 +int ping6_main(int argc, char **argv); int ping6_main(int argc, char **argv) { argv[0] = (char*)"-6"; diff --git a/networking/route.c b/networking/route.c index d32011cc4..069739006 100644 --- a/networking/route.c +++ b/networking/route.c @@ -638,6 +638,7 @@ static const char tbl_verb[] = /* 2nd byte matches RTACTION_* code */ "\010\002delete" /* Since last, we can save a byte. */ ; +int route_main(int argc, char **argv); int route_main(int argc, char **argv) { unsigned opt; diff --git a/networking/telnet.c b/networking/telnet.c index 7407fa413..2a6457f2c 100644 --- a/networking/telnet.c +++ b/networking/telnet.c @@ -581,6 +581,7 @@ static void cookmode(void) if (G.do_termios) tcsetattr(0, TCSADRAIN, &G.termios_def); } +int telnet_main(int argc, char** argv); int telnet_main(int argc, char** argv) { char *host; diff --git a/networking/telnetd.c b/networking/telnetd.c index 25cba3eb0..ef9b1ac74 100644 --- a/networking/telnetd.c +++ b/networking/telnetd.c @@ -360,8 +360,8 @@ void free_session(struct tsession *ts); #endif -int -telnetd_main(int argc, char **argv) +int telnetd_main(int argc, char **argv); +int telnetd_main(int argc, char **argv) { fd_set rdfdset, wrfdset; unsigned opt; diff --git a/networking/tftp.c b/networking/tftp.c index eb192d8fc..a6d85a5c4 100644 --- a/networking/tftp.c +++ b/networking/tftp.c @@ -435,6 +435,7 @@ static int tftp( return finished ? EXIT_SUCCESS : EXIT_FAILURE; } +int tftp_main(int argc, char **argv); int tftp_main(int argc, char **argv) { len_and_sockaddr *peer_lsa; diff --git a/networking/traceroute.c b/networking/traceroute.c index 25c6569bb..4ddde2fda 100644 --- a/networking/traceroute.c +++ b/networking/traceroute.c @@ -886,8 +886,8 @@ getaddr(uint32_t *ap, const char *host) #endif -int -traceroute_main(int argc, char *argv[]) +int traceroute_main(int argc, char *argv[]); +int traceroute_main(int argc, char *argv[]) { int code, n; unsigned char *outp; diff --git a/networking/udhcp/dhcpc.c b/networking/udhcp/dhcpc.c index e48e1f25e..a59c5db74 100644 --- a/networking/udhcp/dhcpc.c +++ b/networking/udhcp/dhcpc.c @@ -122,6 +122,7 @@ static uint8_t* alloc_dhcp_option(int code, const char *str, int extra) } +int udhcpc_main(int argc, char *argv[]); int udhcpc_main(int argc, char *argv[]) { uint8_t *temp, *message; diff --git a/networking/udhcp/dhcpd.c b/networking/udhcp/dhcpd.c index 7d0b8fad1..90d8f0d17 100644 --- a/networking/udhcp/dhcpd.c +++ b/networking/udhcp/dhcpd.c @@ -20,6 +20,7 @@ struct dhcpOfferedAddr *leases; struct server_config_t server_config; +int udhcpd_main(int argc, char *argv[]); int udhcpd_main(int argc, char *argv[]) { fd_set rfds; diff --git a/networking/udhcp/dhcprelay.c b/networking/udhcp/dhcprelay.c index 418aa7cbb..9bb7aeab5 100644 --- a/networking/udhcp/dhcprelay.c +++ b/networking/udhcp/dhcprelay.c @@ -295,6 +295,7 @@ static void dhcprelay_loop(int *fds, int num_sockets, int max_socket, char **cli } } +int dhcprelay_main(int argc, char **argv); int dhcprelay_main(int argc, char **argv) { int i, num_sockets, max_socket, fds[MAX_INTERFACES]; diff --git a/networking/udhcp/dumpleases.c b/networking/udhcp/dumpleases.c index a0e81bb13..ce73c474c 100644 --- a/networking/udhcp/dumpleases.c +++ b/networking/udhcp/dumpleases.c @@ -11,6 +11,7 @@ #define REMAINING 0 #define ABSOLUTE 1 +int dumpleases_main(int argc, char *argv[]); int dumpleases_main(int argc, char *argv[]) { int fp; diff --git a/networking/vconfig.c b/networking/vconfig.c index 003c1a8f7..06c06cb5e 100644 --- a/networking/vconfig.c +++ b/networking/vconfig.c @@ -106,6 +106,7 @@ static const char name_types[] = { static const char conf_file_name[] = "/proc/net/vlan/config"; +int vconfig_main(int argc, char **argv); int vconfig_main(int argc, char **argv) { struct vlan_ioctl_args ifr; diff --git a/networking/wget.c b/networking/wget.c index 432756ce5..e1a4bab0d 100644 --- a/networking/wget.c +++ b/networking/wget.c @@ -86,6 +86,7 @@ static char *base64enc(unsigned char *p, char *buf, int len) } #endif +int wget_main(int argc, char **argv); int wget_main(int argc, char **argv) { char buf[512]; diff --git a/networking/zcip.c b/networking/zcip.c index b56870652..e3755a932 100644 --- a/networking/zcip.c +++ b/networking/zcip.c @@ -204,6 +204,7 @@ static int ready; // = 0; static int verbose; // = 0; static int state = PROBE; +int zcip_main(int argc, char *argv[]); int zcip_main(int argc, char *argv[]) { struct ether_addr eth_addr; |