diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-01-30 17:17:14 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-01-30 17:17:14 +0000 |
commit | 20f40000864609866b51624351581d067b18469c (patch) | |
tree | c47584ea54140cdd66f0833c8202875e8f4fe844 /networking/libiproute/utils.c | |
parent | 0e8727d93b963d13c511d39199043c2c316031c2 (diff) | |
download | busybox-w32-20f40000864609866b51624351581d067b18469c.tar.gz busybox-w32-20f40000864609866b51624351581d067b18469c.tar.bz2 busybox-w32-20f40000864609866b51624351581d067b18469c.zip |
- add some ATTRIBUTE_UNUSED.
- use shorter boilerplate while at it.
Diffstat (limited to 'networking/libiproute/utils.c')
-rw-r--r-- | networking/libiproute/utils.c | 9 |
1 files changed, 3 insertions, 6 deletions
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 | ||
324 | const char *rt_addr_n2a(int af, int len, void *addr, char *buf, int buflen) | 320 | const 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: |