From 8a7c0708b6fb7be245c21e9f6aabb0d8fd968a03 Mon Sep 17 00:00:00 2001 From: Alexander Duyck Date: Wed, 4 May 2011 11:41:40 -0700 Subject: Cleanup defines and header includes to address several issues This change is meant to address several issues. First it moves the check for ethtool-config.h into ethtool-util.h the reason for this change is so that any references to ethtool-util.h outside of ethtool.c will use the correct defines for the endian types. In addition I have pulled several headers that will be common to both ethtool.c and rxclass.c into the ethtool-util.h header file. I am also centralizing several macros that will be needed across multiple files when I implement the network flow classifier rules. Signed-off-by: Alexander Duyck Signed-off-by: Ben Hutchings --- ethtool.c | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) (limited to 'ethtool.c') diff --git a/ethtool.c b/ethtool.c index 9ad7000..24d4e4f 100644 --- a/ethtool.c +++ b/ethtool.c @@ -21,19 +21,12 @@ * * show settings for all devices */ -#ifdef HAVE_CONFIG_H -# include "ethtool-config.h" -#endif - -#include +#include "ethtool-util.h" #include #include -#include -#include #include #include #include -#include #include #include #include @@ -43,18 +36,10 @@ #include #include -#include "ethtool-util.h" - -#ifndef SIOCETHTOOL -#define SIOCETHTOOL 0x8946 -#endif #ifndef MAX_ADDR_LEN #define MAX_ADDR_LEN 32 #endif -#ifndef ARRAY_SIZE -#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) -#endif #ifndef HAVE_NETIF_MSG enum { -- cgit v1.2.1