delete tons of extra #includes

This commit is contained in:
Denis Vlasenko
2007-05-31 22:42:12 +00:00
parent fad2b86c9e
commit 9a7d38fe24
59 changed files with 68 additions and 176 deletions

View File

@@ -15,12 +15,8 @@
* Rani Assaf <rani@magic.metawire.com> 980929: resolve addresses
*/
#include <string.h>
#include "libbb.h"
#include "ip_common.h" /* #include "libbb.h" is inside */
#include "utils.h"
#include "ip_common.h"
int preferred_family = AF_UNSPEC;
smallint oneline;

View File

@@ -10,20 +10,15 @@
* Laszlo Valko <valko@linux.karinthy.hu> 990223: address label must be zero terminated
*/
#include "libbb.h"
#include <sys/socket.h>
#include <sys/ioctl.h>
//#include <sys/socket.h>
//#include <sys/ioctl.h>
#include <fnmatch.h>
#include <string.h>
#include <unistd.h>
#include <net/if.h>
#include <net/if_arp.h>
#include "ip_common.h" /* #include "libbb.h" is inside */
#include "rt_names.h"
#include "utils.h"
#include "ip_common.h"
typedef struct filter_t {

View File

@@ -7,20 +7,16 @@
* Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
*/
#include "libbb.h"
#include <sys/ioctl.h>
#include <sys/socket.h>
//#include <sys/ioctl.h>
//#include <sys/socket.h>
#include <net/if.h>
#include <net/if_packet.h>
#include <netpacket/packet.h>
#include <net/ethernet.h>
#include "ip_common.h" /* #include "libbb.h" is inside */
#include "rt_names.h"
#include "utils.h"
#include "ip_common.h"
/* taken from linux/sockios.h */
#define SIOCSIFNAME 0x8923 /* set interface name */

View File

@@ -13,11 +13,9 @@
* Kunihiro Ishiguro <kunihiro@zebra.org> 001102: rtnh_ifindex was not initialized
*/
#include "libbb.h"
#include "ip_common.h" /* #include "libbb.h" is inside */
#include "rt_names.h"
#include "utils.h"
#include "ip_common.h"
#ifndef RTAX_RTTVAR
#define RTAX_RTTVAR RTAX_HOPS

View File

@@ -16,16 +16,16 @@
* initially integrated into busybox by Bernhard Fischer
*/
#include "libbb.h"
#include <syslog.h>
#include <sys/socket.h>
//#include <sys/socket.h>
#include <netinet/in.h>
#include <netinet/ip.h>
#include <arpa/inet.h>
#include "ip_common.h" /* #include "libbb.h" is inside */
#include "rt_names.h"
#include "utils.h"
#include "ip_common.h"
/*
static void usage(void) __attribute__((noreturn));
@@ -41,6 +41,7 @@ static void usage(void)
exit(-1);
}
*/
static int print_rule(struct sockaddr_nl *who ATTRIBUTE_UNUSED,
struct nlmsghdr *n, void *arg)
{

View File

@@ -14,24 +14,20 @@
* Phil Karn <karn@ka9q.ampr.org> 990408: "pmtudisc" flag
*/
#include "libbb.h"
#include <sys/socket.h>
#include <sys/ioctl.h>
//#include <sys/socket.h>
//#include <sys/ioctl.h>
#include <netinet/ip.h>
#include <net/if.h>
#include <net/if_arp.h>
#include <asm/types.h>
#ifndef __constant_htons
#define __constant_htons htons
#endif
#include <linux/if_tunnel.h>
#include "ip_common.h" /* #include "libbb.h" is inside */
#include "rt_names.h"
#include "utils.h"
#include "ip_common.h"
/* Dies on error */

View File

@@ -10,11 +10,9 @@
* Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>
*/
#include "libbb.h"
#include <string.h>
#include <net/if_arp.h>
#include "libbb.h"
#include "rt_names.h"
#include "utils.h"

View File

@@ -11,16 +11,14 @@
*
*/
#include "libbb.h"
#include <string.h>
//#include <sys/socket.h> /* socket() */
#include <net/if.h> /* struct ifreq and co. */
//#include <sys/ioctl.h> /* ioctl() & SIOCGIFINDEX */
#include "libbb.h"
#include "libnetlink.h"
#include "ll_map.h"
#include <sys/socket.h> /* socket() */
#include <net/if.h> /* struct ifreq and co. */
#include <sys/ioctl.h> /* ioctl() & SIOCGIFINDEX */
struct idxmap {
struct idxmap * next;
int index;

View File

@@ -11,7 +11,6 @@
*/
#include "libbb.h"
#include "rt_names.h"
#include "utils.h"

View File

@@ -9,10 +9,10 @@
*
* Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>
*/
#include <stdio.h>
#include <arpa/inet.h>
#include <linux/if_arp.h>
#include "libbb.h"
#include "rt_names.h"
const char* ll_type_n2a(int type, char *buf, int len)

View File

@@ -11,8 +11,7 @@
*
*/
#include <stdlib.h>
#include <string.h>
#include "libbb.h"
#include "rt_names.h"
#include "utils.h"

View File

@@ -12,7 +12,6 @@
*/
#include "libbb.h"
#include "utils.h"
#include "inet_common.h"

View File

@@ -2,8 +2,6 @@
#ifndef __UTILS_H__
#define __UTILS_H__ 1
#include "libbb.h"
#include "libnetlink.h"
#include "ll_map.h"
#include "rtm_map.h"