diff options
-rw-r--r-- | networking/ip.c | 4 | ||||
-rw-r--r-- | networking/libiproute/ip_common.h | 29 | ||||
-rw-r--r-- | networking/libiproute/ip_parse_common_args.c | 2 | ||||
-rw-r--r-- | networking/libiproute/ipaddress.c | 4 | ||||
-rw-r--r-- | networking/libiproute/iplink.c | 2 | ||||
-rw-r--r-- | networking/libiproute/iproute.c | 2 | ||||
-rw-r--r-- | networking/libiproute/iprule.c | 2 | ||||
-rw-r--r-- | networking/libiproute/iptunnel.c | 2 |
8 files changed, 23 insertions, 24 deletions
diff --git a/networking/ip.c b/networking/ip.c index 3a99fa320..004289667 100644 --- a/networking/ip.c +++ b/networking/ip.c @@ -22,12 +22,12 @@ || ENABLE_FEATURE_IP_TUNNEL \ || ENABLE_FEATURE_IP_RULE -static int ip_print_help(char **argv UNUSED_PARAM) +static int FAST_FUNC ip_print_help(char **argv UNUSED_PARAM) { bb_show_usage(); } -typedef int (*ip_func_ptr_t)(char**); +typedef int FAST_FUNC (*ip_func_ptr_t)(char**); static int ip_do(ip_func_ptr_t ip_func, char **argv) { diff --git a/networking/libiproute/ip_common.h b/networking/libiproute/ip_common.h index aef325281..30c7e595b 100644 --- a/networking/libiproute/ip_common.h +++ b/networking/libiproute/ip_common.h @@ -15,22 +15,21 @@ PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN -extern char **ip_parse_common_args(char **argv); -extern int print_neigh(struct sockaddr_nl *who, struct nlmsghdr *n, void *arg); -extern int ipaddr_list_or_flush(char **argv, int flush); -extern int iproute_monitor(char **argv); -extern void iplink_usage(void) NORETURN; -extern void ipneigh_reset_filter(void); +char FAST_FUNC **ip_parse_common_args(char **argv); +//int FAST_FUNC print_neigh(struct sockaddr_nl *who, struct nlmsghdr *n, void *arg); +int FAST_FUNC ipaddr_list_or_flush(char **argv, int flush); +//int FAST_FUNC iproute_monitor(char **argv); +//void FAST_FUNC ipneigh_reset_filter(void); -extern int do_ipaddr(char **argv); -extern int do_iproute(char **argv); -extern int do_iprule(char **argv); -extern int do_ipneigh(char **argv); -extern int do_iptunnel(char **argv); -extern int do_iplink(char **argv); -extern int do_ipmonitor(char **argv); -extern int do_multiaddr(char **argv); -extern int do_multiroute(char **argv); +int FAST_FUNC do_ipaddr(char **argv); +int FAST_FUNC do_iproute(char **argv); +int FAST_FUNC do_iprule(char **argv); +//int FAST_FUNC do_ipneigh(char **argv); +int FAST_FUNC do_iptunnel(char **argv); +int FAST_FUNC do_iplink(char **argv); +//int FAST_FUNC do_ipmonitor(char **argv); +//int FAST_FUNC do_multiaddr(char **argv); +//int FAST_FUNC do_multiroute(char **argv); POP_SAVED_FUNCTION_VISIBILITY diff --git a/networking/libiproute/ip_parse_common_args.c b/networking/libiproute/ip_parse_common_args.c index 5e4012b81..bf01528c4 100644 --- a/networking/libiproute/ip_parse_common_args.c +++ b/networking/libiproute/ip_parse_common_args.c @@ -22,7 +22,7 @@ family_t preferred_family = AF_UNSPEC; smallint oneline; char _SL_; -char **ip_parse_common_args(char **argv) +char** FAST_FUNC ip_parse_common_args(char **argv) { static const char ip_common_commands[] ALIGN1 = "oneline" "\0" diff --git a/networking/libiproute/ipaddress.c b/networking/libiproute/ipaddress.c index 381293412..b6f469d0f 100644 --- a/networking/libiproute/ipaddress.c +++ b/networking/libiproute/ipaddress.c @@ -415,7 +415,7 @@ static void ipaddr_reset_filter(int _oneline) } /* Return value becomes exitcode. It's okay to not return at all */ -int ipaddr_list_or_flush(char **argv, int flush) +int FAST_FUNC ipaddr_list_or_flush(char **argv, int flush) { static const char option[] ALIGN1 = "to\0""scope\0""up\0""label\0""dev\0"; @@ -747,7 +747,7 @@ static int ipaddr_modify(int cmd, char **argv) } /* Return value becomes exitcode. It's okay to not return at all */ -int do_ipaddr(char **argv) +int FAST_FUNC do_ipaddr(char **argv) { static const char commands[] ALIGN1 = "add\0""delete\0""list\0""show\0""lst\0""flush\0"; diff --git a/networking/libiproute/iplink.c b/networking/libiproute/iplink.c index 8bf892797..9f9218573 100644 --- a/networking/libiproute/iplink.c +++ b/networking/libiproute/iplink.c @@ -362,7 +362,7 @@ static int do_change(char **argv, const unsigned rtm) } /* Return value becomes exitcode. It's okay to not return at all */ -int do_iplink(char **argv) +int FAST_FUNC do_iplink(char **argv) { static const char keywords[] ALIGN1 = "add\0""delete\0""set\0""show\0""lst\0""list\0"; diff --git a/networking/libiproute/iproute.c b/networking/libiproute/iproute.c index d771a609b..8dba2bf3d 100644 --- a/networking/libiproute/iproute.c +++ b/networking/libiproute/iproute.c @@ -869,7 +869,7 @@ static int iproute_get(char **argv) } /* Return value becomes exitcode. It's okay to not return at all */ -int do_iproute(char **argv) +int FAST_FUNC do_iproute(char **argv) { static const char ip_route_commands[] ALIGN1 = /*0-3*/ "add\0""append\0""change\0""chg\0" diff --git a/networking/libiproute/iprule.c b/networking/libiproute/iprule.c index 835529ec4..3af6a83a8 100644 --- a/networking/libiproute/iprule.c +++ b/networking/libiproute/iprule.c @@ -304,7 +304,7 @@ static int iprule_modify(int cmd, char **argv) } /* Return value becomes exitcode. It's okay to not return at all */ -int do_iprule(char **argv) +int FAST_FUNC do_iprule(char **argv) { static const char ip_rule_commands[] ALIGN1 = "add\0""delete\0""list\0""show\0"; diff --git a/networking/libiproute/iptunnel.c b/networking/libiproute/iptunnel.c index 257343826..8389ef348 100644 --- a/networking/libiproute/iptunnel.c +++ b/networking/libiproute/iptunnel.c @@ -556,7 +556,7 @@ static int do_show(char **argv) } /* Return value becomes exitcode. It's okay to not return at all */ -int do_iptunnel(char **argv) +int FAST_FUNC do_iptunnel(char **argv) { static const char keywords[] ALIGN1 = "add\0""change\0""delete\0""show\0""list\0""lst\0"; |