|
|
4aca6e |
From c1bb5cac86c0665c596d3fc9057c536e136675e2 Mon Sep 17 00:00:00 2001
|
|
|
4aca6e |
From: Phil Sutter <psutter@redhat.com>
|
|
|
4aca6e |
Date: Wed, 1 Feb 2017 14:19:26 +0100
|
|
|
4aca6e |
Subject: [PATCH] remove unnecessary extern
|
|
|
4aca6e |
|
|
|
4aca6e |
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1329730
|
|
|
4aca6e |
Upstream Status: iproute2.git commit 892e21248cfdb
|
|
|
4aca6e |
Conflicts: Parts applied manually due to multiple context changes.
|
|
|
4aca6e |
|
|
|
4aca6e |
commit 892e21248cfdb8c1332d46a01df253eae748c9d8
|
|
|
4aca6e |
Author: Stephen Hemminger <shemming@brocade.com>
|
|
|
4aca6e |
Date: Thu Aug 13 14:09:58 2015 -0700
|
|
|
4aca6e |
|
|
|
4aca6e |
remove unnecessary extern
|
|
|
4aca6e |
|
|
|
4aca6e |
No need for extern on function prototypes.
|
|
|
4aca6e |
---
|
|
|
4aca6e |
include/dlfcn.h | 2 +-
|
|
|
4aca6e |
include/libnetlink.h | 78 +++++++++++++++++++++++++++-------------------------
|
|
|
4aca6e |
include/ll_map.h | 18 ++++++------
|
|
|
4aca6e |
include/namespace.h | 6 ++--
|
|
|
4aca6e |
include/utils.h | 56 ++++++++++++++++++-------------------
|
|
|
4aca6e |
5 files changed, 82 insertions(+), 78 deletions(-)
|
|
|
4aca6e |
|
|
|
4aca6e |
diff --git a/include/dlfcn.h b/include/dlfcn.h
|
|
|
4aca6e |
index c54f8d8..f15bc2c 100644
|
|
|
4aca6e |
--- a/include/dlfcn.h
|
|
|
4aca6e |
+++ b/include/dlfcn.h
|
|
|
4aca6e |
@@ -19,7 +19,7 @@ static inline void *dlopen(const char *file, int flag)
|
|
|
4aca6e |
return NULL;
|
|
|
4aca6e |
}
|
|
|
4aca6e |
|
|
|
4aca6e |
-extern void *_dlsym(const char *sym);
|
|
|
4aca6e |
+void *_dlsym(const char *sym);
|
|
|
4aca6e |
static inline void *dlsym(void *handle, const char *sym)
|
|
|
4aca6e |
{
|
|
|
4aca6e |
if (handle != _FAKE_DLFCN_HDL)
|
|
|
4aca6e |
diff --git a/include/libnetlink.h b/include/libnetlink.h
|
|
|
4aca6e |
index 8c90873..40fa6ff 100644
|
|
|
4aca6e |
--- a/include/libnetlink.h
|
|
|
4aca6e |
+++ b/include/libnetlink.h
|
|
|
4aca6e |
@@ -26,20 +26,20 @@ struct rtnl_handle
|
|
|
4aca6e |
|
|
|
4aca6e |
extern int rcvbuf;
|
|
|
4aca6e |
|
|
|
4aca6e |
-extern int rtnl_open(struct rtnl_handle *rth, unsigned subscriptions)
|
|
|
4aca6e |
+int rtnl_open(struct rtnl_handle *rth, unsigned subscriptions)
|
|
|
4aca6e |
__attribute__((warn_unused_result));
|
|
|
4aca6e |
|
|
|
4aca6e |
-extern int rtnl_open_byproto(struct rtnl_handle *rth, unsigned subscriptions,
|
|
|
4aca6e |
+int rtnl_open_byproto(struct rtnl_handle *rth, unsigned subscriptions,
|
|
|
4aca6e |
int protocol)
|
|
|
4aca6e |
__attribute__((warn_unused_result));
|
|
|
4aca6e |
|
|
|
4aca6e |
-extern void rtnl_close(struct rtnl_handle *rth);
|
|
|
4aca6e |
-extern int rtnl_wilddump_request(struct rtnl_handle *rth, int fam, int type)
|
|
|
4aca6e |
+void rtnl_close(struct rtnl_handle *rth);
|
|
|
4aca6e |
+int rtnl_wilddump_request(struct rtnl_handle *rth, int fam, int type)
|
|
|
4aca6e |
__attribute__((warn_unused_result));
|
|
|
4aca6e |
-extern int rtnl_wilddump_req_filter(struct rtnl_handle *rth, int fam, int type,
|
|
|
4aca6e |
+int rtnl_wilddump_req_filter(struct rtnl_handle *rth, int fam, int type,
|
|
|
4aca6e |
__u32 filt_mask)
|
|
|
4aca6e |
__attribute__((warn_unused_result));
|
|
|
4aca6e |
-extern int rtnl_dump_request(struct rtnl_handle *rth, int type, void *req,
|
|
|
4aca6e |
+int rtnl_dump_request(struct rtnl_handle *rth, int type, void *req,
|
|
|
4aca6e |
int len)
|
|
|
4aca6e |
__attribute__((warn_unused_result));
|
|
|
4aca6e |
|
|
|
4aca6e |
@@ -61,43 +61,47 @@ struct rtnl_dump_filter_arg
|
|
|
4aca6e |
__u16 nc_flags;
|
|
|
4aca6e |
};
|
|
|
4aca6e |
|
|
|
4aca6e |
-extern int rtnl_dump_filter_l(struct rtnl_handle *rth,
|
|
|
4aca6e |
+int rtnl_dump_filter_l(struct rtnl_handle *rth,
|
|
|
4aca6e |
const struct rtnl_dump_filter_arg *arg);
|
|
|
4aca6e |
int rtnl_dump_filter_nc(struct rtnl_handle *rth,
|
|
|
4aca6e |
rtnl_filter_t filter,
|
|
|
4aca6e |
void *arg, __u16 nc_flags);
|
|
|
4aca6e |
#define rtnl_dump_filter(rth, filter, arg) \
|
|
|
4aca6e |
rtnl_dump_filter_nc(rth, filter, arg, 0)
|
|
|
4aca6e |
-extern int rtnl_talk(struct rtnl_handle *rtnl, struct nlmsghdr *n,
|
|
|
4aca6e |
- struct nlmsghdr *answer, size_t len)
|
|
|
4aca6e |
+int rtnl_talk(struct rtnl_handle *rtnl, struct nlmsghdr *n,
|
|
|
4aca6e |
+ struct nlmsghdr *answer, size_t len)
|
|
|
4aca6e |
__attribute__((warn_unused_result));
|
|
|
4aca6e |
-extern int rtnl_send(struct rtnl_handle *rth, const void *buf, int)
|
|
|
4aca6e |
+int rtnl_send(struct rtnl_handle *rth, const void *buf, int)
|
|
|
4aca6e |
__attribute__((warn_unused_result));
|
|
|
4aca6e |
-extern int rtnl_send_check(struct rtnl_handle *rth, const void *buf, int)
|
|
|
4aca6e |
+int rtnl_send_check(struct rtnl_handle *rth, const void *buf, int)
|
|
|
4aca6e |
__attribute__((warn_unused_result));
|
|
|
4aca6e |
|
|
|
4aca6e |
-extern int addattr(struct nlmsghdr *n, int maxlen, int type);
|
|
|
4aca6e |
-extern int addattr8(struct nlmsghdr *n, int maxlen, int type, __u8 data);
|
|
|
4aca6e |
-extern int addattr16(struct nlmsghdr *n, int maxlen, int type, __u16 data);
|
|
|
4aca6e |
-extern int addattr32(struct nlmsghdr *n, int maxlen, int type, __u32 data);
|
|
|
4aca6e |
-extern int addattr64(struct nlmsghdr *n, int maxlen, int type, __u64 data);
|
|
|
4aca6e |
-extern int addattrstrz(struct nlmsghdr *n, int maxlen, int type, const char *data);
|
|
|
4aca6e |
-
|
|
|
4aca6e |
-extern int addattr_l(struct nlmsghdr *n, int maxlen, int type, const void *data, int alen);
|
|
|
4aca6e |
-extern int addraw_l(struct nlmsghdr *n, int maxlen, const void *data, int len);
|
|
|
4aca6e |
-extern struct rtattr *addattr_nest(struct nlmsghdr *n, int maxlen, int type);
|
|
|
4aca6e |
-extern int addattr_nest_end(struct nlmsghdr *n, struct rtattr *nest);
|
|
|
4aca6e |
-extern struct rtattr *addattr_nest_compat(struct nlmsghdr *n, int maxlen, int type, const void *data, int len);
|
|
|
4aca6e |
-extern int addattr_nest_compat_end(struct nlmsghdr *n, struct rtattr *nest);
|
|
|
4aca6e |
-extern int rta_addattr32(struct rtattr *rta, int maxlen, int type, __u32 data);
|
|
|
4aca6e |
-extern int rta_addattr_l(struct rtattr *rta, int maxlen, int type, const void *data, int alen);
|
|
|
4aca6e |
-
|
|
|
4aca6e |
-extern int parse_rtattr(struct rtattr *tb[], int max, struct rtattr *rta, int len);
|
|
|
4aca6e |
-extern int parse_rtattr_flags(struct rtattr *tb[], int max, struct rtattr *rta,
|
|
|
4aca6e |
+int addattr(struct nlmsghdr *n, int maxlen, int type);
|
|
|
4aca6e |
+int addattr8(struct nlmsghdr *n, int maxlen, int type, __u8 data);
|
|
|
4aca6e |
+int addattr16(struct nlmsghdr *n, int maxlen, int type, __u16 data);
|
|
|
4aca6e |
+int addattr32(struct nlmsghdr *n, int maxlen, int type, __u32 data);
|
|
|
4aca6e |
+int addattr64(struct nlmsghdr *n, int maxlen, int type, __u64 data);
|
|
|
4aca6e |
+int addattrstrz(struct nlmsghdr *n, int maxlen, int type, const char *data);
|
|
|
4aca6e |
+
|
|
|
4aca6e |
+int addattr_l(struct nlmsghdr *n, int maxlen, int type,
|
|
|
4aca6e |
+ const void *data, int alen);
|
|
|
4aca6e |
+int addraw_l(struct nlmsghdr *n, int maxlen, const void *data, int len);
|
|
|
4aca6e |
+struct rtattr *addattr_nest(struct nlmsghdr *n, int maxlen, int type);
|
|
|
4aca6e |
+int addattr_nest_end(struct nlmsghdr *n, struct rtattr *nest);
|
|
|
4aca6e |
+struct rtattr *addattr_nest_compat(struct nlmsghdr *n, int maxlen, int type,
|
|
|
4aca6e |
+ const void *data, int len);
|
|
|
4aca6e |
+int addattr_nest_compat_end(struct nlmsghdr *n, struct rtattr *nest);
|
|
|
4aca6e |
+int rta_addattr32(struct rtattr *rta, int maxlen, int type, __u32 data);
|
|
|
4aca6e |
+int rta_addattr_l(struct rtattr *rta, int maxlen, int type,
|
|
|
4aca6e |
+ const void *data, int alen);
|
|
|
4aca6e |
+
|
|
|
4aca6e |
+int parse_rtattr(struct rtattr *tb[], int max, struct rtattr *rta, int len);
|
|
|
4aca6e |
+int parse_rtattr_flags(struct rtattr *tb[], int max, struct rtattr *rta,
|
|
|
4aca6e |
int len, unsigned short flags);
|
|
|
4aca6e |
-extern int parse_rtattr_byindex(struct rtattr *tb[], int max, struct rtattr *rta, int len);
|
|
|
4aca6e |
-extern struct rtattr *parse_rtattr_one(int type, struct rtattr *rta, int len);
|
|
|
4aca6e |
-extern int __parse_rtattr_nested_compat(struct rtattr *tb[], int max, struct rtattr *rta, int len);
|
|
|
4aca6e |
+int parse_rtattr_byindex(struct rtattr *tb[], int max,
|
|
|
4aca6e |
+ struct rtattr *rta, int len);
|
|
|
4aca6e |
+struct rtattr *parse_rtattr_one(int type, struct rtattr *rta, int len);
|
|
|
4aca6e |
+int __parse_rtattr_nested_compat(struct rtattr *tb[], int max, struct rtattr *rta, int len);
|
|
|
4aca6e |
|
|
|
4aca6e |
#define parse_rtattr_nested(tb, max, rta) \
|
|
|
4aca6e |
(parse_rtattr((tb), (max), RTA_DATA(rta), RTA_PAYLOAD(rta)))
|
|
|
4aca6e |
@@ -132,11 +136,11 @@ static inline const char *rta_getattr_str(const struct rtattr *rta)
|
|
|
4aca6e |
return (const char *)RTA_DATA(rta);
|
|
|
4aca6e |
}
|
|
|
4aca6e |
|
|
|
4aca6e |
-extern int rtnl_listen_all_nsid(struct rtnl_handle *);
|
|
|
4aca6e |
-extern int rtnl_listen(struct rtnl_handle *, rtnl_listen_filter_t handler,
|
|
|
4aca6e |
- void *jarg);
|
|
|
4aca6e |
-extern int rtnl_from_file(FILE *, rtnl_listen_filter_t handler,
|
|
|
4aca6e |
- void *jarg);
|
|
|
4aca6e |
+int rtnl_listen_all_nsid(struct rtnl_handle *);
|
|
|
4aca6e |
+int rtnl_listen(struct rtnl_handle *, rtnl_listen_filter_t handler,
|
|
|
4aca6e |
+ void *jarg);
|
|
|
4aca6e |
+int rtnl_from_file(FILE *, rtnl_listen_filter_t handler,
|
|
|
4aca6e |
+ void *jarg);
|
|
|
4aca6e |
|
|
|
4aca6e |
#define NLMSG_TAIL(nmsg) \
|
|
|
4aca6e |
((struct rtattr *) (((void *) (nmsg)) + NLMSG_ALIGN((nmsg)->nlmsg_len)))
|
|
|
4aca6e |
diff --git a/include/ll_map.h b/include/ll_map.h
|
|
|
4aca6e |
index b98a571..949bfc3 100644
|
|
|
4aca6e |
--- a/include/ll_map.h
|
|
|
4aca6e |
+++ b/include/ll_map.h
|
|
|
4aca6e |
@@ -1,15 +1,15 @@
|
|
|
4aca6e |
#ifndef __LL_MAP_H__
|
|
|
4aca6e |
#define __LL_MAP_H__ 1
|
|
|
4aca6e |
|
|
|
4aca6e |
-extern int ll_remember_index(const struct sockaddr_nl *who,
|
|
|
4aca6e |
- struct nlmsghdr *n, void *arg);
|
|
|
4aca6e |
+int ll_remember_index(const struct sockaddr_nl *who,
|
|
|
4aca6e |
+ struct nlmsghdr *n, void *arg);
|
|
|
4aca6e |
|
|
|
4aca6e |
-extern void ll_init_map(struct rtnl_handle *rth);
|
|
|
4aca6e |
-extern unsigned ll_name_to_index(const char *name);
|
|
|
4aca6e |
-extern const char *ll_index_to_name(unsigned idx);
|
|
|
4aca6e |
-extern const char *ll_idx_n2a(unsigned idx, char *buf);
|
|
|
4aca6e |
-extern int ll_index_to_type(unsigned idx);
|
|
|
4aca6e |
-extern int ll_index_to_flags(unsigned idx);
|
|
|
4aca6e |
-extern unsigned namehash(const char *str);
|
|
|
4aca6e |
+void ll_init_map(struct rtnl_handle *rth);
|
|
|
4aca6e |
+unsigned ll_name_to_index(const char *name);
|
|
|
4aca6e |
+const char *ll_index_to_name(unsigned idx);
|
|
|
4aca6e |
+const char *ll_idx_n2a(unsigned idx, char *buf);
|
|
|
4aca6e |
+int ll_index_to_type(unsigned idx);
|
|
|
4aca6e |
+int ll_index_to_flags(unsigned idx);
|
|
|
4aca6e |
+unsigned namehash(const char *str);
|
|
|
4aca6e |
|
|
|
4aca6e |
#endif /* __LL_MAP_H__ */
|
|
|
4aca6e |
diff --git a/include/namespace.h b/include/namespace.h
|
|
|
4aca6e |
index 5add9d2..51324b2 100644
|
|
|
4aca6e |
--- a/include/namespace.h
|
|
|
4aca6e |
+++ b/include/namespace.h
|
|
|
4aca6e |
@@ -43,9 +43,9 @@ static inline int setns(int fd, int nstype)
|
|
|
4aca6e |
}
|
|
|
4aca6e |
#endif /* HAVE_SETNS */
|
|
|
4aca6e |
|
|
|
4aca6e |
-extern int netns_switch(char *netns);
|
|
|
4aca6e |
-extern int netns_get_fd(const char *netns);
|
|
|
4aca6e |
-extern int netns_foreach(int (*func)(char *nsname, void *arg), void *arg);
|
|
|
4aca6e |
+int netns_switch(char *netns);
|
|
|
4aca6e |
+int netns_get_fd(const char *netns);
|
|
|
4aca6e |
+int netns_foreach(int (*func)(char *nsname, void *arg), void *arg);
|
|
|
4aca6e |
|
|
|
4aca6e |
struct netns_func {
|
|
|
4aca6e |
int (*func)(char *nsname, void *arg);
|
|
|
4aca6e |
diff --git a/include/utils.h b/include/utils.h
|
|
|
4aca6e |
index 2d1e390..a1f9eb3 100644
|
|
|
4aca6e |
--- a/include/utils.h
|
|
|
4aca6e |
+++ b/include/utils.h
|
|
|
4aca6e |
@@ -42,7 +42,7 @@ extern bool do_all;
|
|
|
4aca6e |
#define SPRINT_BSIZE 64
|
|
|
4aca6e |
#define SPRINT_BUF(x) char x[SPRINT_BSIZE]
|
|
|
4aca6e |
|
|
|
4aca6e |
-extern void incomplete_command(void) __attribute__((noreturn));
|
|
|
4aca6e |
+void incomplete_command(void) __attribute__((noreturn));
|
|
|
4aca6e |
|
|
|
4aca6e |
#define NEXT_ARG() do { argv++; if (--argc <= 0) incomplete_command(); } while(0)
|
|
|
4aca6e |
#define NEXT_ARG_OK() (argc - 1 > 0)
|
|
|
4aca6e |
@@ -77,27 +77,27 @@ struct ipx_addr {
|
|
|
4aca6e |
u_int8_t ipx_node[IPX_NODE_LEN];
|
|
|
4aca6e |
};
|
|
|
4aca6e |
|
|
|
4aca6e |
-extern __u32 get_addr32(const char *name);
|
|
|
4aca6e |
-extern int get_addr_1(inet_prefix *dst, const char *arg, int family);
|
|
|
4aca6e |
-extern int get_prefix_1(inet_prefix *dst, char *arg, int family);
|
|
|
4aca6e |
-extern int get_addr(inet_prefix *dst, const char *arg, int family);
|
|
|
4aca6e |
-extern int get_prefix(inet_prefix *dst, char *arg, int family);
|
|
|
4aca6e |
-extern int mask2bits(__u32 netmask);
|
|
|
4aca6e |
+__u32 get_addr32(const char *name);
|
|
|
4aca6e |
+int get_addr_1(inet_prefix *dst, const char *arg, int family);
|
|
|
4aca6e |
+int get_prefix_1(inet_prefix *dst, char *arg, int family);
|
|
|
4aca6e |
+int get_addr(inet_prefix *dst, const char *arg, int family);
|
|
|
4aca6e |
+int get_prefix(inet_prefix *dst, char *arg, int family);
|
|
|
4aca6e |
+int mask2bits(__u32 netmask);
|
|
|
4aca6e |
|
|
|
4aca6e |
int get_hex(char c);
|
|
|
4aca6e |
-extern int get_integer(int *val, const char *arg, int base);
|
|
|
4aca6e |
-extern int get_unsigned(unsigned *val, const char *arg, int base);
|
|
|
4aca6e |
-extern int get_time_rtt(unsigned *val, const char *arg, int *raw);
|
|
|
4aca6e |
+int get_integer(int *val, const char *arg, int base);
|
|
|
4aca6e |
+int get_unsigned(unsigned *val, const char *arg, int base);
|
|
|
4aca6e |
+int get_time_rtt(unsigned *val, const char *arg, int *raw);
|
|
|
4aca6e |
#define get_byte get_u8
|
|
|
4aca6e |
#define get_ushort get_u16
|
|
|
4aca6e |
#define get_short get_s16
|
|
|
4aca6e |
-extern int get_u64(__u64 *val, const char *arg, int base);
|
|
|
4aca6e |
-extern int get_u32(__u32 *val, const char *arg, int base);
|
|
|
4aca6e |
-extern int get_s32(__s32 *val, const char *arg, int base);
|
|
|
4aca6e |
-extern int get_u16(__u16 *val, const char *arg, int base);
|
|
|
4aca6e |
-extern int get_s16(__s16 *val, const char *arg, int base);
|
|
|
4aca6e |
-extern int get_u8(__u8 *val, const char *arg, int base);
|
|
|
4aca6e |
-extern int get_s8(__s8 *val, const char *arg, int base);
|
|
|
4aca6e |
+int get_u64(__u64 *val, const char *arg, int base);
|
|
|
4aca6e |
+int get_u32(__u32 *val, const char *arg, int base);
|
|
|
4aca6e |
+int get_s32(__s32 *val, const char *arg, int base);
|
|
|
4aca6e |
+int get_u16(__u16 *val, const char *arg, int base);
|
|
|
4aca6e |
+int get_s16(__s16 *val, const char *arg, int base);
|
|
|
4aca6e |
+int get_u8(__u8 *val, const char *arg, int base);
|
|
|
4aca6e |
+int get_s8(__s8 *val, const char *arg, int base);
|
|
|
4aca6e |
int get_be64(__be64 *val, const char *arg, int base);
|
|
|
4aca6e |
int get_be32(__be32 *val, const char *arg, int base);
|
|
|
4aca6e |
int get_be16(__be16 *val, const char *arg, int base);
|
|
|
4aca6e |
@@ -105,20 +105,20 @@ int get_be16(__be16 *val, const char *arg, int base);
|
|
|
4aca6e |
char *hexstring_n2a(const __u8 *str, int len, char *buf, int blen);
|
|
|
4aca6e |
__u8 *hexstring_a2n(const char *str, __u8 *buf, int blen, unsigned int *len);
|
|
|
4aca6e |
|
|
|
4aca6e |
-extern const char *format_host(int af, int len, const void *addr,
|
|
|
4aca6e |
+const char *format_host(int af, int len, const void *addr,
|
|
|
4aca6e |
char *buf, int buflen);
|
|
|
4aca6e |
-extern const char *rt_addr_n2a(int af, int len, const void *addr,
|
|
|
4aca6e |
+const char *rt_addr_n2a(int af, int len, const void *addr,
|
|
|
4aca6e |
char *buf, int buflen);
|
|
|
4aca6e |
|
|
|
4aca6e |
-extern int read_family(const char *name);
|
|
|
4aca6e |
-extern const char *family_name(int family);
|
|
|
4aca6e |
+int read_family(const char *name);
|
|
|
4aca6e |
+const char *family_name(int family);
|
|
|
4aca6e |
|
|
|
4aca6e |
void missarg(const char *) __attribute__((noreturn));
|
|
|
4aca6e |
void invarg(const char *, const char *) __attribute__((noreturn));
|
|
|
4aca6e |
void duparg(const char *, const char *) __attribute__((noreturn));
|
|
|
4aca6e |
void duparg2(const char *, const char *) __attribute__((noreturn));
|
|
|
4aca6e |
int matches(const char *arg, const char *pattern);
|
|
|
4aca6e |
-extern int inet_addr_match(const inet_prefix *a, const inet_prefix *b, int bits);
|
|
|
4aca6e |
+int inet_addr_match(const inet_prefix *a, const inet_prefix *b, int bits);
|
|
|
4aca6e |
|
|
|
4aca6e |
const char *dnet_ntop(int af, const void *addr, char *str, size_t len);
|
|
|
4aca6e |
int dnet_pton(int af, const char *src, void *addr);
|
|
|
4aca6e |
@@ -127,7 +127,7 @@ const char *ipx_ntop(int af, const void *addr, char *str, size_t len);
|
|
|
4aca6e |
int ipx_pton(int af, const char *src, void *addr);
|
|
|
4aca6e |
|
|
|
4aca6e |
extern int __iproute2_hz_internal;
|
|
|
4aca6e |
-extern int __get_hz(void);
|
|
|
4aca6e |
+__get_hz(void);
|
|
|
4aca6e |
|
|
|
4aca6e |
static __inline__ int get_hz(void)
|
|
|
4aca6e |
{
|
|
|
4aca6e |
@@ -137,7 +137,7 @@ static __inline__ int get_hz(void)
|
|
|
4aca6e |
}
|
|
|
4aca6e |
|
|
|
4aca6e |
extern int __iproute2_user_hz_internal;
|
|
|
4aca6e |
-extern int __get_user_hz(void);
|
|
|
4aca6e |
+int __get_user_hz(void);
|
|
|
4aca6e |
|
|
|
4aca6e |
static __inline__ int get_user_hz(void)
|
|
|
4aca6e |
{
|
|
|
4aca6e |
@@ -164,16 +164,16 @@ int print_timestamp(FILE *fp);
|
|
|
4aca6e |
#define ntohll(x) ((1==ntohl(1)) ? (x) : ((uint64_t)ntohl((x) & 0xFFFFFFFF) << 32) | ntohl((x) >> 32))
|
|
|
4aca6e |
|
|
|
4aca6e |
extern int cmdlineno;
|
|
|
4aca6e |
-extern ssize_t getcmdline(char **line, size_t *len, FILE *in);
|
|
|
4aca6e |
-extern int makeargs(char *line, char *argv[], int maxargs);
|
|
|
4aca6e |
-extern int inet_get_addr(const char *src, __u32 *dst, struct in6_addr *dst6);
|
|
|
4aca6e |
+ssize_t getcmdline(char **line, size_t *len, FILE *in);
|
|
|
4aca6e |
+int makeargs(char *line, char *argv[], int maxargs);
|
|
|
4aca6e |
+int inet_get_addr(const char *src, __u32 *dst, struct in6_addr *dst6);
|
|
|
4aca6e |
|
|
|
4aca6e |
struct iplink_req;
|
|
|
4aca6e |
int iplink_parse(int argc, char **argv, struct iplink_req *req,
|
|
|
4aca6e |
char **name, char **type, char **link, char **dev,
|
|
|
4aca6e |
int *group);
|
|
|
4aca6e |
|
|
|
4aca6e |
-extern int do_each_netns(int (*func)(char *nsname, void *arg), void *arg,
|
|
|
4aca6e |
+int do_each_netns(int (*func)(char *nsname, void *arg), void *arg,
|
|
|
4aca6e |
bool show_label);
|
|
|
4aca6e |
|
|
|
4aca6e |
char *int_to_str(int val, char *buf);
|
|
|
4aca6e |
--
|
|
|
4aca6e |
1.8.3.1
|
|
|
4aca6e |
|