From a6271600417e14d84bffd9b78fb9ad2b119db226 Mon Sep 17 00:00:00 2001 From: Gisle Vanem Date: Mon, 26 Feb 2007 04:33:19 +0000 Subject: Removed inclusion of in .c-files since it's already included through "setup.h". --- adig.c | 1 - ahost.c | 1 - ares__get_hostent.c | 1 - ares_expand_name.c | 1 - ares_expand_string.c | 1 - ares_fds.c | 1 - ares_gethostbyaddr.c | 5 ++--- ares_gethostbyname.c | 5 ++--- ares_getnameinfo.c | 2 -- ares_getsock.c | 1 - ares_init.c | 1 - ares_mkquery.c | 1 - ares_parse_a_reply.c | 1 - ares_parse_aaaa_reply.c | 1 - ares_parse_ns_reply.c | 1 - ares_parse_ptr_reply.c | 1 - ares_process.c | 1 - ares_query.c | 1 - ares_send.c | 1 - ares_timeout.c | 1 - bitncmp.c | 4 +--- inet_net_pton.c | 3 --- inet_ntop.c | 2 -- 23 files changed, 5 insertions(+), 33 deletions(-) diff --git a/adig.c b/adig.c index 6521378..f422496 100644 --- a/adig.c +++ b/adig.c @@ -16,7 +16,6 @@ */ #include "setup.h" -#include #if defined(WIN32) && !defined(WATT32) #include "nameser.h" diff --git a/ahost.c b/ahost.c index 2fa6dac..10680d2 100644 --- a/ahost.c +++ b/ahost.c @@ -16,7 +16,6 @@ */ #include "setup.h" -#include #if !defined(WIN32) || defined(WATT32) #ifdef HAVE_SYS_TIME_H diff --git a/ares__get_hostent.c b/ares__get_hostent.c index 333cf50..312a678 100644 --- a/ares__get_hostent.c +++ b/ares__get_hostent.c @@ -16,7 +16,6 @@ */ #include "setup.h" -#include #if !defined(WIN32) || defined(WATT32) #include diff --git a/ares_expand_name.c b/ares_expand_name.c index a08c81d..7fe025f 100644 --- a/ares_expand_name.c +++ b/ares_expand_name.c @@ -16,7 +16,6 @@ */ #include "setup.h" -#include #if defined(WIN32) && !defined(WATT32) #include "nameser.h" diff --git a/ares_expand_string.c b/ares_expand_string.c index 0a4343d..0c7211b 100644 --- a/ares_expand_string.c +++ b/ares_expand_string.c @@ -16,7 +16,6 @@ */ #include "setup.h" -#include #if defined(WIN32) && !defined(WATT32) #include "nameser.h" diff --git a/ares_fds.c b/ares_fds.c index 67bf313..e8d2ee2 100644 --- a/ares_fds.c +++ b/ares_fds.c @@ -16,7 +16,6 @@ */ #include "setup.h" -#include #ifdef HAVE_SYS_TIME_H #include diff --git a/ares_gethostbyaddr.c b/ares_gethostbyaddr.c index db0ac46..7ea7ebb 100644 --- a/ares_gethostbyaddr.c +++ b/ares_gethostbyaddr.c @@ -15,7 +15,6 @@ * without express or implied warranty. */ #include "setup.h" -#include #if defined(WIN32) && !defined(WATT32) #include "nameser.h" @@ -221,7 +220,7 @@ static int file_lookup(union ares_addr *addr, int family, struct hostent **host) if (!fp) { error = ERRNO; - switch(error) + switch(error) { case ENOENT: case ESRCH: @@ -229,7 +228,7 @@ static int file_lookup(union ares_addr *addr, int family, struct hostent **host) default: DEBUGF(fprintf(stderr, "fopen() failed with error: %d %s\n", error, strerror(error))); - DEBUGF(fprintf(stderr, "Error opening file: %s\n", + DEBUGF(fprintf(stderr, "Error opening file: %s\n", PATH_HOSTS)); *host = NULL; return ARES_EFILE; diff --git a/ares_gethostbyname.c b/ares_gethostbyname.c index 1bd5ac9..c0fa474 100644 --- a/ares_gethostbyname.c +++ b/ares_gethostbyname.c @@ -16,7 +16,6 @@ */ #include "setup.h" -#include #if defined(WIN32) && !defined(WATT32) #include "nameser.h" @@ -283,7 +282,7 @@ static int file_lookup(const char *name, int family, struct hostent **host) if (!fp) { error = ERRNO; - switch(error) + switch(error) { case ENOENT: case ESRCH: @@ -291,7 +290,7 @@ static int file_lookup(const char *name, int family, struct hostent **host) default: DEBUGF(fprintf(stderr, "fopen() failed with error: %d %s\n", error, strerror(error))); - DEBUGF(fprintf(stderr, "Error opening file: %s\n", + DEBUGF(fprintf(stderr, "Error opening file: %s\n", PATH_HOSTS)); *host = NULL; return ARES_EFILE; diff --git a/ares_getnameinfo.c b/ares_getnameinfo.c index a63c9b6..8d10cfc 100644 --- a/ares_getnameinfo.c +++ b/ares_getnameinfo.c @@ -15,8 +15,6 @@ * without express or implied warranty. */ #include "setup.h" -#include -#include #if defined(WIN32) && !defined(WATT32) #include "nameser.h" diff --git a/ares_getsock.c b/ares_getsock.c index a6288e9..2b54887 100644 --- a/ares_getsock.c +++ b/ares_getsock.c @@ -14,7 +14,6 @@ */ #include "setup.h" -#include #ifdef HAVE_SYS_TIME_H #include diff --git a/ares_init.c b/ares_init.c index 8f78fa4..552f51f 100644 --- a/ares_init.c +++ b/ares_init.c @@ -16,7 +16,6 @@ */ #include "setup.h" -#include #if defined(WIN32) && !defined(WATT32) #include "nameser.h" diff --git a/ares_mkquery.c b/ares_mkquery.c index 8fcf35a..cfd15a9 100644 --- a/ares_mkquery.c +++ b/ares_mkquery.c @@ -16,7 +16,6 @@ */ #include "setup.h" -#include #if defined(WIN32) && !defined(WATT32) #include "nameser.h" diff --git a/ares_parse_a_reply.c b/ares_parse_a_reply.c index 54b5151..6f42750 100644 --- a/ares_parse_a_reply.c +++ b/ares_parse_a_reply.c @@ -16,7 +16,6 @@ */ #include "setup.h" -#include #if defined(WIN32) && !defined(WATT32) #include "nameser.h" diff --git a/ares_parse_aaaa_reply.c b/ares_parse_aaaa_reply.c index 036db28..535d40e 100644 --- a/ares_parse_aaaa_reply.c +++ b/ares_parse_aaaa_reply.c @@ -16,7 +16,6 @@ */ #include "setup.h" -#include #if defined(WIN32) && !defined(WATT32) #include "nameser.h" diff --git a/ares_parse_ns_reply.c b/ares_parse_ns_reply.c index b8b258a..19dd888 100644 --- a/ares_parse_ns_reply.c +++ b/ares_parse_ns_reply.c @@ -19,7 +19,6 @@ */ #include "setup.h" -#include #if defined(WIN32) && !defined(WATT32) #include "nameser.h" diff --git a/ares_parse_ptr_reply.c b/ares_parse_ptr_reply.c index b8b600b..8b87c9b 100644 --- a/ares_parse_ptr_reply.c +++ b/ares_parse_ptr_reply.c @@ -16,7 +16,6 @@ */ #include "setup.h" -#include #if defined(WIN32) && !defined(WATT32) #include "nameser.h" diff --git a/ares_process.c b/ares_process.c index 6b1b071..8cb51c3 100644 --- a/ares_process.c +++ b/ares_process.c @@ -16,7 +16,6 @@ */ #include "setup.h" -#include #if defined(WIN32) && !defined(WATT32) #include "nameser.h" diff --git a/ares_query.c b/ares_query.c index 8b2dabd..742e873 100644 --- a/ares_query.c +++ b/ares_query.c @@ -16,7 +16,6 @@ */ #include "setup.h" -#include #if defined(WIN32) && !defined(WATT32) #include "nameser.h" diff --git a/ares_send.c b/ares_send.c index 6d17a1c..7f4362c 100644 --- a/ares_send.c +++ b/ares_send.c @@ -16,7 +16,6 @@ */ #include "setup.h" -#include #if defined(WIN32) && !defined(WATT32) #include "nameser.h" diff --git a/ares_timeout.c b/ares_timeout.c index a6a0af3..fa5ae01 100644 --- a/ares_timeout.c +++ b/ares_timeout.c @@ -16,7 +16,6 @@ */ #include "setup.h" -#include #ifdef HAVE_SYS_TIME_H #include diff --git a/bitncmp.c b/bitncmp.c index bb35d4b..b9077ba 100644 --- a/bitncmp.c +++ b/bitncmp.c @@ -19,9 +19,7 @@ #ifndef HAVE_BITNCMP -#include -#include -#include +#include "setup.h" #include "bitncmp.h" /* diff --git a/inet_net_pton.c b/inet_net_pton.c index af941bf..487cd82 100644 --- a/inet_net_pton.c +++ b/inet_net_pton.c @@ -19,9 +19,6 @@ #include "setup.h" - -#include - #if defined(WIN32) && !defined(WATT32) #include "nameser.h" #else diff --git a/inet_ntop.c b/inet_ntop.c index f076e06..d07e19e 100644 --- a/inet_ntop.c +++ b/inet_ntop.c @@ -18,8 +18,6 @@ #include "setup.h" -#include - #if defined(WIN32) && !defined(WATT32) #include "nameser.h" #else -- cgit v1.2.3