summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGisle Vanem <gvanem@broadpark.no>2007-02-26 04:33:19 (GMT)
committerGisle Vanem <gvanem@broadpark.no>2007-02-26 04:33:19 (GMT)
commita6271600417e14d84bffd9b78fb9ad2b119db226 (patch)
treedd1118ee2c1d1c2a1c0a309435e92077f9ade428
parent7c768759582e74aaa3e39b17d7ddc8f0603fb4bb (diff)
downloadc-ares-a6271600417e14d84bffd9b78fb9ad2b119db226.zip
c-ares-a6271600417e14d84bffd9b78fb9ad2b119db226.tar.gz
c-ares-a6271600417e14d84bffd9b78fb9ad2b119db226.tar.bz2
Removed inclusion of <sys/types.h> in .c-files
since it's already included through "setup.h".
-rw-r--r--adig.c1
-rw-r--r--ahost.c1
-rw-r--r--ares__get_hostent.c1
-rw-r--r--ares_expand_name.c1
-rw-r--r--ares_expand_string.c1
-rw-r--r--ares_fds.c1
-rw-r--r--ares_gethostbyaddr.c5
-rw-r--r--ares_gethostbyname.c5
-rw-r--r--ares_getnameinfo.c2
-rw-r--r--ares_getsock.c1
-rw-r--r--ares_init.c1
-rw-r--r--ares_mkquery.c1
-rw-r--r--ares_parse_a_reply.c1
-rw-r--r--ares_parse_aaaa_reply.c1
-rw-r--r--ares_parse_ns_reply.c1
-rw-r--r--ares_parse_ptr_reply.c1
-rw-r--r--ares_process.c1
-rw-r--r--ares_query.c1
-rw-r--r--ares_send.c1
-rw-r--r--ares_timeout.c1
-rw-r--r--bitncmp.c4
-rw-r--r--inet_net_pton.c3
-rw-r--r--inet_ntop.c2
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 <sys/types.h>
#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 <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"
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 <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>
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 <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