summaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
Diffstat (limited to 'networking')
-rw-r--r--networking/arp.c1
-rw-r--r--networking/arping.c1
-rw-r--r--networking/dnsd.c1
-rw-r--r--networking/ether-wake.c1
-rw-r--r--networking/ftpgetput.c1
-rw-r--r--networking/hostname.c1
-rw-r--r--networking/httpd.c1
-rw-r--r--networking/ifconfig.c1
-rw-r--r--networking/ifupdown.c1
-rw-r--r--networking/inetd.c4
-rw-r--r--networking/ip.c1
-rw-r--r--networking/ipaddr.c1
-rw-r--r--networking/ipcalc.c1
-rw-r--r--networking/iplink.c1
-rw-r--r--networking/iproute.c1
-rw-r--r--networking/iprule.c1
-rw-r--r--networking/iptunnel.c1
-rw-r--r--networking/isrv_identd.c1
-rw-r--r--networking/nameif.c1
-rw-r--r--networking/nc.c1
-rw-r--r--networking/netstat.c1
-rw-r--r--networking/nslookup.c1
-rw-r--r--networking/ping.c3
-rw-r--r--networking/route.c1
-rw-r--r--networking/telnet.c1
-rw-r--r--networking/telnetd.c4
-rw-r--r--networking/tftp.c1
-rw-r--r--networking/traceroute.c4
-rw-r--r--networking/udhcp/dhcpc.c1
-rw-r--r--networking/udhcp/dhcpd.c1
-rw-r--r--networking/udhcp/dhcprelay.c1
-rw-r--r--networking/udhcp/dumpleases.c1
-rw-r--r--networking/vconfig.c1
-rw-r--r--networking/wget.c1
-rw-r--r--networking/zcip.c1
35 files changed, 40 insertions, 6 deletions
diff --git a/networking/arp.c b/networking/arp.c
index 33191d8..2af6bc9 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 7bab0d0..20c782f 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 6a866f1..6d1335e 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 f923149..73f693e 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 590b7eb..dad1c99 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 45aaaa4..3f6a658 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 e3f798c..fb363c5 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 9cdd41c..b36f86d 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 834c7fa..ce3b9ba 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 5e7005e..c037d11 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 7a7f55c..fdd8480 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 c907808..fb02137 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 685f0e3..63ce99f 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 4a28c74..54087e9 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 62335a8..3d540b2 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 43eaea6..9c1fb50 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 9ae734a..8a65413 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 2d4399c..f9ab0b2 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 52aad28..ec77512 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 dc9102b..c1e8811 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 a5631c3..d89d3aa 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 914f3f5..14c05b3 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 ba4f585..d0e6f3a 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 d32011c..0697390 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 7407fa4..2a6457f 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 25cba3e..ef9b1ac 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 eb192d8..a6d85a5 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 25c6569..4ddde2f 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 e48e1f2..a59c5db 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 7d0b8fa..90d8f0d 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 418aa7c..9bb7aea 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 a0e81bb..ce73c47 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 003c1a8..06c06cb 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 432756c..e1a4bab 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 b568706..e3755a9 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;