diff options
Diffstat (limited to 'networking/libiproute')
-rw-r--r-- | networking/libiproute/ip_common.h | 2 | ||||
-rw-r--r-- | networking/libiproute/ipaddress.c | 4 | ||||
-rw-r--r-- | networking/libiproute/iplink.c | 2 | ||||
-rw-r--r-- | networking/libiproute/iproute.c | 4 | ||||
-rw-r--r-- | networking/libiproute/iprule.c | 4 | ||||
-rw-r--r-- | networking/libiproute/ll_map.c | 4 | ||||
-rw-r--r-- | networking/libiproute/utils.c | 2 | ||||
-rw-r--r-- | networking/libiproute/utils.h | 8 |
8 files changed, 15 insertions, 15 deletions
diff --git a/networking/libiproute/ip_common.h b/networking/libiproute/ip_common.h index 346d0b96c..305b491c6 100644 --- a/networking/libiproute/ip_common.h +++ b/networking/libiproute/ip_common.h | |||
@@ -21,7 +21,7 @@ extern char **ip_parse_common_args(char **argv); | |||
21 | extern int print_neigh(struct sockaddr_nl *who, struct nlmsghdr *n, void *arg); | 21 | extern int print_neigh(struct sockaddr_nl *who, struct nlmsghdr *n, void *arg); |
22 | extern int ipaddr_list_or_flush(char **argv, int flush); | 22 | extern int ipaddr_list_or_flush(char **argv, int flush); |
23 | extern int iproute_monitor(char **argv); | 23 | extern int iproute_monitor(char **argv); |
24 | extern void iplink_usage(void) ATTRIBUTE_NORETURN; | 24 | extern void iplink_usage(void) NORETURN; |
25 | extern void ipneigh_reset_filter(void); | 25 | extern void ipneigh_reset_filter(void); |
26 | 26 | ||
27 | extern int do_ipaddr(char **argv); | 27 | extern int do_ipaddr(char **argv); |
diff --git a/networking/libiproute/ipaddress.c b/networking/libiproute/ipaddress.c index 7a948a19d..288dccae7 100644 --- a/networking/libiproute/ipaddress.c +++ b/networking/libiproute/ipaddress.c | |||
@@ -196,8 +196,8 @@ static int flush_update(void) | |||
196 | return 0; | 196 | return 0; |
197 | } | 197 | } |
198 | 198 | ||
199 | static int print_addrinfo(const struct sockaddr_nl *who ATTRIBUTE_UNUSED, | 199 | static int print_addrinfo(const struct sockaddr_nl *who UNUSED_PARAM, |
200 | struct nlmsghdr *n, void *arg ATTRIBUTE_UNUSED) | 200 | struct nlmsghdr *n, void *arg UNUSED_PARAM) |
201 | { | 201 | { |
202 | struct ifaddrmsg *ifa = NLMSG_DATA(n); | 202 | struct ifaddrmsg *ifa = NLMSG_DATA(n); |
203 | int len = n->nlmsg_len; | 203 | int len = n->nlmsg_len; |
diff --git a/networking/libiproute/iplink.c b/networking/libiproute/iplink.c index 5aad6ed9f..3b212eed9 100644 --- a/networking/libiproute/iplink.c +++ b/networking/libiproute/iplink.c | |||
@@ -154,7 +154,7 @@ static void set_address(struct ifreq *ifr, int brd) | |||
154 | } | 154 | } |
155 | 155 | ||
156 | 156 | ||
157 | static void die_must_be_on_off(const char *msg) ATTRIBUTE_NORETURN; | 157 | static void die_must_be_on_off(const char *msg) NORETURN; |
158 | static void die_must_be_on_off(const char *msg) | 158 | static void die_must_be_on_off(const char *msg) |
159 | { | 159 | { |
160 | bb_error_msg_and_die("argument of \"%s\" must be \"on\" or \"off\"", msg); | 160 | bb_error_msg_and_die("argument of \"%s\" must be \"on\" or \"off\"", msg); |
diff --git a/networking/libiproute/iproute.c b/networking/libiproute/iproute.c index 07a88c4dd..17af41f9c 100644 --- a/networking/libiproute/iproute.c +++ b/networking/libiproute/iproute.c | |||
@@ -78,8 +78,8 @@ static unsigned get_hz(void) | |||
78 | return hz_internal; | 78 | return hz_internal; |
79 | } | 79 | } |
80 | 80 | ||
81 | static int print_route(const struct sockaddr_nl *who ATTRIBUTE_UNUSED, | 81 | static int print_route(const struct sockaddr_nl *who UNUSED_PARAM, |
82 | struct nlmsghdr *n, void *arg ATTRIBUTE_UNUSED) | 82 | struct nlmsghdr *n, void *arg UNUSED_PARAM) |
83 | { | 83 | { |
84 | struct rtmsg *r = NLMSG_DATA(n); | 84 | struct rtmsg *r = NLMSG_DATA(n); |
85 | int len = n->nlmsg_len; | 85 | int len = n->nlmsg_len; |
diff --git a/networking/libiproute/iprule.c b/networking/libiproute/iprule.c index 2ee7701f8..f92607830 100644 --- a/networking/libiproute/iprule.c +++ b/networking/libiproute/iprule.c | |||
@@ -40,8 +40,8 @@ static void usage(void) | |||
40 | } | 40 | } |
41 | */ | 41 | */ |
42 | 42 | ||
43 | static int print_rule(const struct sockaddr_nl *who ATTRIBUTE_UNUSED, | 43 | static int print_rule(const struct sockaddr_nl *who UNUSED_PARAM, |
44 | struct nlmsghdr *n, void *arg ATTRIBUTE_UNUSED) | 44 | struct nlmsghdr *n, void *arg UNUSED_PARAM) |
45 | { | 45 | { |
46 | struct rtmsg *r = NLMSG_DATA(n); | 46 | struct rtmsg *r = NLMSG_DATA(n); |
47 | int len = n->nlmsg_len; | 47 | int len = n->nlmsg_len; |
diff --git a/networking/libiproute/ll_map.c b/networking/libiproute/ll_map.c index f9b697070..eeae4e252 100644 --- a/networking/libiproute/ll_map.c +++ b/networking/libiproute/ll_map.c | |||
@@ -39,9 +39,9 @@ static struct idxmap *find_by_index(int idx) | |||
39 | return NULL; | 39 | return NULL; |
40 | } | 40 | } |
41 | 41 | ||
42 | int ll_remember_index(const struct sockaddr_nl *who ATTRIBUTE_UNUSED, | 42 | int ll_remember_index(const struct sockaddr_nl *who UNUSED_PARAM, |
43 | struct nlmsghdr *n, | 43 | struct nlmsghdr *n, |
44 | void *arg ATTRIBUTE_UNUSED) | 44 | void *arg UNUSED_PARAM) |
45 | { | 45 | { |
46 | int h; | 46 | int h; |
47 | struct ifinfomsg *ifi = NLMSG_DATA(n); | 47 | struct ifinfomsg *ifi = NLMSG_DATA(n); |
diff --git a/networking/libiproute/utils.c b/networking/libiproute/utils.c index e63bb27fb..706710e1f 100644 --- a/networking/libiproute/utils.c +++ b/networking/libiproute/utils.c | |||
@@ -279,7 +279,7 @@ int inet_addr_match(inet_prefix * a, inet_prefix * b, int bits) | |||
279 | return 0; | 279 | return 0; |
280 | } | 280 | } |
281 | 281 | ||
282 | const char *rt_addr_n2a(int af, int ATTRIBUTE_UNUSED len, | 282 | const char *rt_addr_n2a(int af, int UNUSED_PARAM len, |
283 | void *addr, char *buf, int buflen) | 283 | void *addr, char *buf, int buflen) |
284 | { | 284 | { |
285 | switch (af) { | 285 | switch (af) { |
diff --git a/networking/libiproute/utils.h b/networking/libiproute/utils.h index 06b1f04ab..607083af8 100644 --- a/networking/libiproute/utils.h +++ b/networking/libiproute/utils.h | |||
@@ -28,7 +28,7 @@ extern char _SL_; | |||
28 | #define SPRINT_BSIZE 64 | 28 | #define SPRINT_BSIZE 64 |
29 | #define SPRINT_BUF(x) char x[SPRINT_BSIZE] | 29 | #define SPRINT_BUF(x) char x[SPRINT_BSIZE] |
30 | 30 | ||
31 | extern void incomplete_command(void) ATTRIBUTE_NORETURN; | 31 | extern void incomplete_command(void) NORETURN; |
32 | 32 | ||
33 | #define NEXT_ARG() do { if (!*++argv) incomplete_command(); } while (0) | 33 | #define NEXT_ARG() do { if (!*++argv) incomplete_command(); } while (0) |
34 | 34 | ||
@@ -76,9 +76,9 @@ extern int get_s8(int8_t *val, char *arg, int base); | |||
76 | extern const char *format_host(int af, int len, void *addr, char *buf, int buflen); | 76 | extern const char *format_host(int af, int len, void *addr, char *buf, int buflen); |
77 | extern const char *rt_addr_n2a(int af, int len, void *addr, char *buf, int buflen); | 77 | extern const char *rt_addr_n2a(int af, int len, void *addr, char *buf, int buflen); |
78 | 78 | ||
79 | void invarg(const char *, const char *) ATTRIBUTE_NORETURN; | 79 | void invarg(const char *, const char *) NORETURN; |
80 | void duparg(const char *, const char *) ATTRIBUTE_NORETURN; | 80 | void duparg(const char *, const char *) NORETURN; |
81 | void duparg2(const char *, const char *) ATTRIBUTE_NORETURN; | 81 | void duparg2(const char *, const char *) NORETURN; |
82 | int inet_addr_match(inet_prefix *a, inet_prefix *b, int bits); | 82 | int inet_addr_match(inet_prefix *a, inet_prefix *b, int bits); |
83 | 83 | ||
84 | const char *dnet_ntop(int af, const void *addr, char *str, size_t len); | 84 | const char *dnet_ntop(int af, const void *addr, char *str, size_t len); |