From 2e9b5510d687e5418bea85c3b04ad1e1fa797b6f Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sat, 24 Jul 2010 23:27:38 +0200 Subject: libiproute: code shrink by adding FAST_FUNC function old new delta ipaddr_list_or_flush 1282 1293 +11 ip_parse_common_args 153 151 -2 ip_main 53 50 -3 ip_do 19 15 -4 do_iptunnel 985 980 -5 do_iprule 982 977 -5 do_iplink 1637 1631 -6 do_iproute 2105 2098 -7 do_ipaddr 1406 1398 -8 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/8 up/down: 11/-40) Total: -29 bytes Signed-off-by: Denys Vlasenko --- networking/libiproute/ip_common.h | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) (limited to 'networking/libiproute/ip_common.h') 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 -- cgit v1.2.3