aboutsummaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
authorGravatar Rob Landley <rob@landley.net>2006-03-06 20:47:33 +0000
committerGravatar Rob Landley <rob@landley.net>2006-03-06 20:47:33 +0000
commitdfba741457cc81eb2ed3a9d4c074fbad74aa3249 (patch)
tree588d140a71e857cb32c80d1faad6f3073b119aa7 /networking
parent1f5e25bf3eca768b8cee1c689ac154d8f51662f9 (diff)
downloadbusybox-dfba741457cc81eb2ed3a9d4c074fbad74aa3249.tar.gz
busybox-dfba741457cc81eb2ed3a9d4c074fbad74aa3249.tar.bz2
Robert P. Day removed 8 gazillion occurrences of "extern" on function
definitions. (That should only be on prototypes.)
Diffstat (limited to 'networking')
-rw-r--r--networking/ifupdown.c2
-rw-r--r--networking/libiproute/ipaddress.c4
-rw-r--r--networking/ping.c4
-rw-r--r--networking/ping6.c4
-rw-r--r--networking/telnet.c2
5 files changed, 8 insertions, 8 deletions
diff --git a/networking/ifupdown.c b/networking/ifupdown.c
index 9e6fc6291..c3cfcd8b3 100644
--- a/networking/ifupdown.c
+++ b/networking/ifupdown.c
@@ -1133,7 +1133,7 @@ static llist_t *find_iface_state(llist_t *state_list, const char *iface)
return(NULL);
}
-extern int ifupdown_main(int argc, char **argv)
+int ifupdown_main(int argc, char **argv)
{
int (*cmds) (struct interface_defn_t *) = NULL;
struct interfaces_file_t *defn;
diff --git a/networking/libiproute/ipaddress.c b/networking/libiproute/ipaddress.c
index d7a0c5177..bcb4880a6 100644
--- a/networking/libiproute/ipaddress.c
+++ b/networking/libiproute/ipaddress.c
@@ -414,7 +414,7 @@ static void ipaddr_reset_filter(int _oneline)
filter.oneline = _oneline;
}
-extern int ipaddr_list_or_flush(int argc, char **argv, int flush)
+int ipaddr_list_or_flush(int argc, char **argv, int flush)
{
static const char *const option[] = { "to", "scope", "up", "label", "dev", 0 };
@@ -805,7 +805,7 @@ static int ipaddr_modify(int cmd, int argc, char **argv)
exit(0);
}
-extern int do_ipaddr(int argc, char **argv)
+int do_ipaddr(int argc, char **argv)
{
static const char *const commands[] = {
"add", "delete", "list", "show", "lst", "flush", 0
diff --git a/networking/ping.c b/networking/ping.c
index 14373c8d6..47b9f8f52 100644
--- a/networking/ping.c
+++ b/networking/ping.c
@@ -138,7 +138,7 @@ static void ping(const char *host)
return;
}
-extern int ping_main(int argc, char **argv)
+int ping_main(int argc, char **argv)
{
argc--;
argv++;
@@ -377,7 +377,7 @@ static void ping(const char *host)
pingstats(0);
}
-extern int ping_main(int argc, char **argv)
+int ping_main(int argc, char **argv)
{
char *thisarg;
diff --git a/networking/ping6.c b/networking/ping6.c
index 1d7271d7b..42cf2785c 100644
--- a/networking/ping6.c
+++ b/networking/ping6.c
@@ -139,7 +139,7 @@ static void ping(const char *host)
return;
}
-extern int ping6_main(int argc, char **argv)
+int ping6_main(int argc, char **argv)
{
argc--;
argv++;
@@ -423,7 +423,7 @@ static void ping(const char *host)
pingstats(0);
}
-extern int ping6_main(int argc, char **argv)
+int ping6_main(int argc, char **argv)
{
char *thisarg;
diff --git a/networking/telnet.c b/networking/telnet.c
index 05c7786ab..ca4896bf0 100644
--- a/networking/telnet.c
+++ b/networking/telnet.c
@@ -613,7 +613,7 @@ static void cookmode(void)
if (G.do_termios) tcsetattr(0, TCSADRAIN, &G.termios_def);
}
-extern int telnet_main(int argc, char** argv)
+int telnet_main(int argc, char** argv)
{
int len;
struct sockaddr_in s_in;