From ecae66ac16338d8cddb55e1782ebd8c5f670ff53 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Fri, 2 Jun 2006 20:53:38 +0000 Subject: Header cleanup: don't #include headers that libbb.h already includes. --- networking/libiproute/iplink.c | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) (limited to 'networking/libiproute/iplink.c') diff --git a/networking/libiproute/iplink.c b/networking/libiproute/iplink.c index 12677d522..2797f0250 100644 --- a/networking/libiproute/iplink.c +++ b/networking/libiproute/iplink.c @@ -1,21 +1,17 @@ /* * iplink.c "ip link". * - * 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. - * * Authors: Alexey Kuznetsov, * + * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. */ +#include "libbb.h" + #include #include -#include #include -#include #include #include @@ -23,19 +19,12 @@ #include #include -#if __GLIBC__ >=2 && __GLIBC_MINOR >= 1 #include -#else -#include -#endif #include "rt_names.h" #include "utils.h" #include "ip_common.h" -#include "libbb.h" - - /* take from linux/sockios.h */ #define SIOCSIFNAME 0x8923 /* set interface name */ @@ -96,7 +85,6 @@ static int do_chflags(char *dev, __u32 flags, __u32 mask) static int do_changename(char *dev, char *newdev) { -#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 4, 0) struct ifreq ifr; int fd; int err; @@ -114,8 +102,6 @@ static int do_changename(char *dev, char *newdev) } close(fd); return err; -#endif - return 0; } static int set_qlen(char *dev, int qlen) -- cgit v1.2.3