From 20f40000864609866b51624351581d067b18469c Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Mon, 30 Jan 2006 17:17:14 +0000 Subject: - add some ATTRIBUTE_UNUSED. - use shorter boilerplate while at it. --- networking/libiproute/utils.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'networking/libiproute/utils.c') 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 @@ /* * utils.c * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version - * 2 of the License, or (at your option) any later version. + * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. * * Authors: Alexey Kuznetsov, * - * * Changes: * * Rani Assaf 980929: resolve addresses @@ -321,7 +317,8 @@ int __get_hz(void) return sysconf(_SC_CLK_TCK); } -const char *rt_addr_n2a(int af, int len, void *addr, char *buf, int buflen) +const char *rt_addr_n2a(int af, int ATTRIBUTE_UNUSED len, + void *addr, char *buf, int buflen) { switch (af) { case AF_INET: -- cgit v1.2.3