diff options
author | Gisle Vanem <gvanem@broadpark.no> | 2007-02-26 04:33:19 +0000 |
---|---|---|
committer | Gisle Vanem <gvanem@broadpark.no> | 2007-02-26 04:33:19 +0000 |
commit | a6271600417e14d84bffd9b78fb9ad2b119db226 (patch) | |
tree | dd1118ee2c1d1c2a1c0a309435e92077f9ade428 | |
parent | 7c768759582e74aaa3e39b17d7ddc8f0603fb4bb (diff) | |
download | c-ares-a6271600417e14d84bffd9b78fb9ad2b119db226.tar.gz c-ares-a6271600417e14d84bffd9b78fb9ad2b119db226.tar.bz2 c-ares-a6271600417e14d84bffd9b78fb9ad2b119db226.zip |
Removed inclusion of <sys/types.h> in .c-files
since it's already included through "setup.h".
-rw-r--r-- | adig.c | 1 | ||||
-rw-r--r-- | ahost.c | 1 | ||||
-rw-r--r-- | ares__get_hostent.c | 1 | ||||
-rw-r--r-- | ares_expand_name.c | 1 | ||||
-rw-r--r-- | ares_expand_string.c | 1 | ||||
-rw-r--r-- | ares_fds.c | 1 | ||||
-rw-r--r-- | ares_gethostbyaddr.c | 5 | ||||
-rw-r--r-- | ares_gethostbyname.c | 5 | ||||
-rw-r--r-- | ares_getnameinfo.c | 2 | ||||
-rw-r--r-- | ares_getsock.c | 1 | ||||
-rw-r--r-- | ares_init.c | 1 | ||||
-rw-r--r-- | ares_mkquery.c | 1 | ||||
-rw-r--r-- | ares_parse_a_reply.c | 1 | ||||
-rw-r--r-- | ares_parse_aaaa_reply.c | 1 | ||||
-rw-r--r-- | ares_parse_ns_reply.c | 1 | ||||
-rw-r--r-- | ares_parse_ptr_reply.c | 1 | ||||
-rw-r--r-- | ares_process.c | 1 | ||||
-rw-r--r-- | ares_query.c | 1 | ||||
-rw-r--r-- | ares_send.c | 1 | ||||
-rw-r--r-- | ares_timeout.c | 1 | ||||
-rw-r--r-- | bitncmp.c | 4 | ||||
-rw-r--r-- | inet_net_pton.c | 3 | ||||
-rw-r--r-- | inet_ntop.c | 2 |
23 files changed, 5 insertions, 33 deletions
@@ -16,7 +16,6 @@ */ #include "setup.h" -#include <sys/types.h> #if defined(WIN32) && !defined(WATT32) #include "nameser.h" @@ -16,7 +16,6 @@ */ #include "setup.h" -#include <sys/types.h> #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 <sys/types.h> #if !defined(WIN32) || defined(WATT32) #include <sys/socket.h> 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 <sys/types.h> #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 <sys/types.h> #if defined(WIN32) && !defined(WATT32) #include "nameser.h" @@ -16,7 +16,6 @@ */ #include "setup.h" -#include <sys/types.h> #ifdef HAVE_SYS_TIME_H #include <sys/time.h> 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 <sys/types.h> #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 <sys/types.h> #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 <sys/types.h> -#include <ctype.h> #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 <sys/types.h> #ifdef HAVE_SYS_TIME_H #include <sys/time.h> 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 <sys/types.h> #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 <sys/types.h> #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 <sys/types.h> #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 <sys/types.h> #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 <sys/types.h> #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 <sys/types.h> #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 <sys/types.h> #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 <sys/types.h> #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 <sys/types.h> #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 <sys/types.h> #ifdef HAVE_SYS_TIME_H #include <sys/time.h> @@ -19,9 +19,7 @@ #ifndef HAVE_BITNCMP -#include <sys/types.h> -#include <string.h> -#include <stdlib.h> +#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 <sys/types.h> - #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 <sys/types.h> - #if defined(WIN32) && !defined(WATT32) #include "nameser.h" #else |