Removed inclusion of <sys/types.h> in .c-files
authorGisle Vanem <gvanem@broadpark.no>
Mon, 26 Feb 2007 04:33:19 +0000 (04:33 +0000)
committerGisle Vanem <gvanem@broadpark.no>
Mon, 26 Feb 2007 04:33:19 +0000 (04:33 +0000)
since it's already included through "setup.h".

23 files changed:
adig.c
ahost.c
ares__get_hostent.c
ares_expand_name.c
ares_expand_string.c
ares_fds.c
ares_gethostbyaddr.c
ares_gethostbyname.c
ares_getnameinfo.c
ares_getsock.c
ares_init.c
ares_mkquery.c
ares_parse_a_reply.c
ares_parse_aaaa_reply.c
ares_parse_ns_reply.c
ares_parse_ptr_reply.c
ares_process.c
ares_query.c
ares_send.c
ares_timeout.c
bitncmp.c
inet_net_pton.c
inet_ntop.c

diff --git a/adig.c b/adig.c
index 6521378..f422496 100644 (file)
--- a/adig.c
+++ b/adig.c
@@ -16,7 +16,6 @@
  */
 
 #include "setup.h"
-#include <sys/types.h>
 
 #if defined(WIN32) && !defined(WATT32)
 #include "nameser.h"
diff --git a/ahost.c b/ahost.c
index 2fa6dac..10680d2 100644 (file)
--- a/ahost.c
+++ b/ahost.c
@@ -16,7 +16,6 @@
  */
 
 #include "setup.h"
-#include <sys/types.h>
 
 #if !defined(WIN32) || defined(WATT32)
 #ifdef HAVE_SYS_TIME_H
index 333cf50..312a678 100644 (file)
@@ -16,7 +16,6 @@
  */
 
 #include "setup.h"
-#include <sys/types.h>
 
 #if !defined(WIN32) || defined(WATT32)
 #include <sys/socket.h>
index a08c81d..7fe025f 100644 (file)
@@ -16,7 +16,6 @@
  */
 
 #include "setup.h"
-#include <sys/types.h>
 
 #if defined(WIN32) && !defined(WATT32)
 #include "nameser.h"
index 0a4343d..0c7211b 100644 (file)
@@ -16,7 +16,6 @@
  */
 
 #include "setup.h"
-#include <sys/types.h>
 
 #if defined(WIN32) && !defined(WATT32)
 #include "nameser.h"
index 67bf313..e8d2ee2 100644 (file)
@@ -16,7 +16,6 @@
  */
 
 #include "setup.h"
-#include <sys/types.h>
 
 #ifdef HAVE_SYS_TIME_H
 #include <sys/time.h>
index db0ac46..7ea7ebb 100644 (file)
@@ -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;
index 1bd5ac9..c0fa474 100644 (file)
@@ -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;
index a63c9b6..8d10cfc 100644 (file)
@@ -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"
index a6288e9..2b54887 100644 (file)
@@ -14,7 +14,6 @@
  */
 
 #include "setup.h"
-#include <sys/types.h>
 
 #ifdef HAVE_SYS_TIME_H
 #include <sys/time.h>
index 8f78fa4..552f51f 100644 (file)
@@ -16,7 +16,6 @@
  */
 
 #include "setup.h"
-#include <sys/types.h>
 
 #if defined(WIN32) && !defined(WATT32)
 #include "nameser.h"
index 8fcf35a..cfd15a9 100644 (file)
@@ -16,7 +16,6 @@
  */
 
 #include "setup.h"
-#include <sys/types.h>
 
 #if defined(WIN32) && !defined(WATT32)
 #include "nameser.h"
index 54b5151..6f42750 100644 (file)
@@ -16,7 +16,6 @@
  */
 
 #include "setup.h"
-#include <sys/types.h>
 
 #if defined(WIN32) && !defined(WATT32)
 #include "nameser.h"
index 036db28..535d40e 100644 (file)
@@ -16,7 +16,6 @@
  */
 
 #include "setup.h"
-#include <sys/types.h>
 
 #if defined(WIN32) && !defined(WATT32)
 #include "nameser.h"
index b8b258a..19dd888 100644 (file)
@@ -19,7 +19,6 @@
  */
 
 #include "setup.h"
-#include <sys/types.h>
 
 #if defined(WIN32) && !defined(WATT32)
 #include "nameser.h"
index b8b600b..8b87c9b 100644 (file)
@@ -16,7 +16,6 @@
  */
 
 #include "setup.h"
-#include <sys/types.h>
 
 #if defined(WIN32) && !defined(WATT32)
 #include "nameser.h"
index 6b1b071..8cb51c3 100644 (file)
@@ -16,7 +16,6 @@
  */
 
 #include "setup.h"
-#include <sys/types.h>
 
 #if defined(WIN32) && !defined(WATT32)
 #include "nameser.h"
index 8b2dabd..742e873 100644 (file)
@@ -16,7 +16,6 @@
  */
 
 #include "setup.h"
-#include <sys/types.h>
 
 #if defined(WIN32) && !defined(WATT32)
 #include "nameser.h"
index 6d17a1c..7f4362c 100644 (file)
@@ -16,7 +16,6 @@
  */
 
 #include "setup.h"
-#include <sys/types.h>
 
 #if defined(WIN32) && !defined(WATT32)
 #include "nameser.h"
index a6a0af3..fa5ae01 100644 (file)
@@ -16,7 +16,6 @@
  */
 
 #include "setup.h"
-#include <sys/types.h>
 
 #ifdef HAVE_SYS_TIME_H
 #include <sys/time.h>
index bb35d4b..b9077ba 100644 (file)
--- a/bitncmp.c
+++ b/bitncmp.c
@@ -19,9 +19,7 @@
 
 #ifndef HAVE_BITNCMP
 
-#include <sys/types.h>
-#include <string.h>
-#include <stdlib.h>
+#include "setup.h"
 #include "bitncmp.h"
 
 /*
index af941bf..487cd82 100644 (file)
@@ -19,9 +19,6 @@
 
 #include "setup.h"
 
-
-#include <sys/types.h>
-
 #if defined(WIN32) && !defined(WATT32)
 #include "nameser.h"
 #else
index f076e06..d07e19e 100644 (file)
@@ -18,8 +18,6 @@
 
 #include "setup.h"
 
-#include <sys/types.h>
-
 #if defined(WIN32) && !defined(WATT32)
 #include "nameser.h"
 #else