aboutsummaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
authoraldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-01-30 17:17:14 +0000
committeraldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-01-30 17:17:14 +0000
commite3206585f41ad674d5d6f9f04f4cb50efdc21119 (patch)
treec47584ea54140cdd66f0833c8202875e8f4fe844 /networking
parent1384f29bcb54c994159c68508b9c359d7d2abc6a (diff)
downloadbusybox-w32-e3206585f41ad674d5d6f9f04f4cb50efdc21119.tar.gz
busybox-w32-e3206585f41ad674d5d6f9f04f4cb50efdc21119.tar.bz2
busybox-w32-e3206585f41ad674d5d6f9f04f4cb50efdc21119.zip
- add some ATTRIBUTE_UNUSED.
- use shorter boilerplate while at it. git-svn-id: svn://busybox.net/trunk/busybox@13718 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'networking')
-rw-r--r--networking/libiproute/ipaddress.c11
-rw-r--r--networking/libiproute/utils.c9
2 files changed, 8 insertions, 12 deletions
diff --git a/networking/libiproute/ipaddress.c b/networking/libiproute/ipaddress.c
index c5e6e4ea5..12b8fc8f8 100644
--- a/networking/libiproute/ipaddress.c
+++ b/networking/libiproute/ipaddress.c
@@ -1,10 +1,7 @@
1/* 1/*
2 * ipaddress.c "ip address". 2 * ipaddress.c "ip address".
3 * 3 *
4 * This program is free software; you can redistribute it and/or 4 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version
7 * 2 of the License, or (at your option) any later version.
8 * 5 *
9 * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> 6 * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>
10 * 7 *
@@ -103,7 +100,8 @@ static void print_queuelen(char *name)
103 printf("qlen %d", ifr.ifr_qlen); 100 printf("qlen %d", ifr.ifr_qlen);
104} 101}
105 102
106static int print_linkinfo(struct sockaddr_nl *who, struct nlmsghdr *n, void *arg) 103static int print_linkinfo(struct sockaddr_nl ATTRIBUTE_UNUSED *who,
104 struct nlmsghdr *n, void ATTRIBUTE_UNUSED *arg)
107{ 105{
108 FILE *fp = (FILE*)arg; 106 FILE *fp = (FILE*)arg;
109 struct ifinfomsg *ifi = NLMSG_DATA(n); 107 struct ifinfomsg *ifi = NLMSG_DATA(n);
@@ -205,7 +203,8 @@ static int flush_update(void)
205 return 0; 203 return 0;
206} 204}
207 205
208static int print_addrinfo(struct sockaddr_nl *who, struct nlmsghdr *n, void *arg) 206static int print_addrinfo(struct sockaddr_nl ATTRIBUTE_UNUSED *who,
207 struct nlmsghdr *n, void ATTRIBUTE_UNUSED *arg)
209{ 208{
210 FILE *fp = (FILE*)arg; 209 FILE *fp = (FILE*)arg;
211 struct ifaddrmsg *ifa = NLMSG_DATA(n); 210 struct ifaddrmsg *ifa = NLMSG_DATA(n);
diff --git a/networking/libiproute/utils.c b/networking/libiproute/utils.c
index e6b386c1d..0dd5d9519 100644
--- a/networking/libiproute/utils.c
+++ b/networking/libiproute/utils.c
@@ -1,14 +1,10 @@
1/* 1/*
2 * utils.c 2 * utils.c
3 * 3 *
4 * This program is free software; you can redistribute it and/or 4 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version
7 * 2 of the License, or (at your option) any later version.
8 * 5 *
9 * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> 6 * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>
10 * 7 *
11 *
12 * Changes: 8 * Changes:
13 * 9 *
14 * Rani Assaf <rani@magic.metawire.com> 980929: resolve addresses 10 * Rani Assaf <rani@magic.metawire.com> 980929: resolve addresses
@@ -321,7 +317,8 @@ int __get_hz(void)
321 return sysconf(_SC_CLK_TCK); 317 return sysconf(_SC_CLK_TCK);
322} 318}
323 319
324const char *rt_addr_n2a(int af, int len, void *addr, char *buf, int buflen) 320const char *rt_addr_n2a(int af, int ATTRIBUTE_UNUSED len,
321 void *addr, char *buf, int buflen)
325{ 322{
326 switch (af) { 323 switch (af) {
327 case AF_INET: 324 case AF_INET: