]> granicus.if.org Git - curl/commitdiff
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:
ares/adig.c
ares/ahost.c
ares/ares__get_hostent.c
ares/ares_expand_name.c
ares/ares_expand_string.c
ares/ares_fds.c
ares/ares_gethostbyaddr.c
ares/ares_gethostbyname.c
ares/ares_getnameinfo.c
ares/ares_getsock.c
ares/ares_init.c
ares/ares_mkquery.c
ares/ares_parse_a_reply.c
ares/ares_parse_aaaa_reply.c
ares/ares_parse_ns_reply.c
ares/ares_parse_ptr_reply.c
ares/ares_process.c
ares/ares_query.c
ares/ares_send.c
ares/ares_timeout.c
ares/bitncmp.c
ares/inet_net_pton.c
ares/inet_ntop.c

index 65213780b4bec810f185b7fb7dfcd7b8ac1bf727..f42249606b3b34e112d0db4c4bf5e0323d15ddc5 100644 (file)
@@ -16,7 +16,6 @@
  */
 
 #include "setup.h"
-#include <sys/types.h>
 
 #if defined(WIN32) && !defined(WATT32)
 #include "nameser.h"
index 2fa6dac76fd6e1ff67fa85449c1737930ca1c880..10680d216e9bd424e83234f85eeb68bb466ce8f0 100644 (file)
@@ -16,7 +16,6 @@
  */
 
 #include "setup.h"
-#include <sys/types.h>
 
 #if !defined(WIN32) || defined(WATT32)
 #ifdef HAVE_SYS_TIME_H
index 333cf505e56aa6a6b7b365a55f861eba7d7fe45f..312a678ecdc416c691a61e4e4c7a646c952290d3 100644 (file)
@@ -16,7 +16,6 @@
  */
 
 #include "setup.h"
-#include <sys/types.h>
 
 #if !defined(WIN32) || defined(WATT32)
 #include <sys/socket.h>
index a08c81d7ef44fd5201007a9d832981a1dd947b0a..7fe025fe46be76b849c3df3a3121a61003517fa9 100644 (file)
@@ -16,7 +16,6 @@
  */
 
 #include "setup.h"
-#include <sys/types.h>
 
 #if defined(WIN32) && !defined(WATT32)
 #include "nameser.h"
index 0a4343d40fb8a815448a839ebfb6c6f898eddb45..0c7211ba2c97e6f9725ffccc24932b3fd70220d4 100644 (file)
@@ -16,7 +16,6 @@
  */
 
 #include "setup.h"
-#include <sys/types.h>
 
 #if defined(WIN32) && !defined(WATT32)
 #include "nameser.h"
index 67bf31322cd425da5a6a4b4fff45c2b3bac8c17c..e8d2ee28baf2b995d39bb790189bfcf3b4400f50 100644 (file)
@@ -16,7 +16,6 @@
  */
 
 #include "setup.h"
-#include <sys/types.h>
 
 #ifdef HAVE_SYS_TIME_H
 #include <sys/time.h>
index db0ac46b33cefc79324737a6b48911a6f4db1ee2..7ea7ebbc06bb7bf851ed0f8c4cfd0f73a5c9e7a0 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 1bd5ac95d7fd7d9b426c45530bc990978e44af50..c0fa4743ac28177a524ec485a4f547314598b21f 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 a63c9b6adc10908629fa0ff80f01b1f3ac956dd5..8d10cfc1155918868aa4225e5d4c715b297c54fd 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 a6288e986ab9a37ab62708672baeae941a021396..2b54887be805c840ea6b471381a2c6052b3e1514 100644 (file)
@@ -14,7 +14,6 @@
  */
 
 #include "setup.h"
-#include <sys/types.h>
 
 #ifdef HAVE_SYS_TIME_H
 #include <sys/time.h>
index 8f78fa445ecaef9c9af3eb2a92d1473b9f6956b0..552f51f48e859282bdbe4f7949018124e814378b 100644 (file)
@@ -16,7 +16,6 @@
  */
 
 #include "setup.h"
-#include <sys/types.h>
 
 #if defined(WIN32) && !defined(WATT32)
 #include "nameser.h"
index 8fcf35a178e1c3614e0bd74e114a47a5e621505c..cfd15a9973998901dfeac304558728d639285321 100644 (file)
@@ -16,7 +16,6 @@
  */
 
 #include "setup.h"
-#include <sys/types.h>
 
 #if defined(WIN32) && !defined(WATT32)
 #include "nameser.h"
index 54b5151c6625c2e7000999ab5b05b14abd85d053..6f4275022b8f0e41f343825b0e321b45c9048cb9 100644 (file)
@@ -16,7 +16,6 @@
  */
 
 #include "setup.h"
-#include <sys/types.h>
 
 #if defined(WIN32) && !defined(WATT32)
 #include "nameser.h"
index 036db280103a1cefa517ca9a8919224c26e9aed8..535d40ee019c1660f9b1cd429e72070bfba66040 100644 (file)
@@ -16,7 +16,6 @@
  */
 
 #include "setup.h"
-#include <sys/types.h>
 
 #if defined(WIN32) && !defined(WATT32)
 #include "nameser.h"
index b8b258abbe395ab8a301ad6290cd22d12597b007..19dd88870471d11883f616a6c7f46f725487bafd 100644 (file)
@@ -19,7 +19,6 @@
  */
 
 #include "setup.h"
-#include <sys/types.h>
 
 #if defined(WIN32) && !defined(WATT32)
 #include "nameser.h"
index b8b600b8463dc6c3a17f18fb573ebb9e03e09cde..8b87c9b87499427ccce944f04e83d15d77da863d 100644 (file)
@@ -16,7 +16,6 @@
  */
 
 #include "setup.h"
-#include <sys/types.h>
 
 #if defined(WIN32) && !defined(WATT32)
 #include "nameser.h"
index 6b1b07154ec42999fcd27ca00876ae09bea93c00..8cb51c3b20199e455405c826af88ad3e6ea39607 100644 (file)
@@ -16,7 +16,6 @@
  */
 
 #include "setup.h"
-#include <sys/types.h>
 
 #if defined(WIN32) && !defined(WATT32)
 #include "nameser.h"
index 8b2dabd4fa7ac84b51eae17bf0b6b44c9c9633eb..742e87310d39c174f7b593b797469ee59a4056ba 100644 (file)
@@ -16,7 +16,6 @@
  */
 
 #include "setup.h"
-#include <sys/types.h>
 
 #if defined(WIN32) && !defined(WATT32)
 #include "nameser.h"
index 6d17a1cd7fcc60fea1133b07185dded6acc65f9c..7f4362c7c39724873088d7beaba87df6f841183a 100644 (file)
@@ -16,7 +16,6 @@
  */
 
 #include "setup.h"
-#include <sys/types.h>
 
 #if defined(WIN32) && !defined(WATT32)
 #include "nameser.h"
index a6a0af31e4c502659e4fbb4bf6cf8e88b8f6a8db..fa5ae0187810f4ab2c7b4e4efc64ccb5be0d867d 100644 (file)
@@ -16,7 +16,6 @@
  */
 
 #include "setup.h"
-#include <sys/types.h>
 
 #ifdef HAVE_SYS_TIME_H
 #include <sys/time.h>
index bb35d4b466731ccf02d15b71bfd441ca15bb6ac5..b9077bacccae8e5998236352ceccd1d9b6ee3b71 100644 (file)
@@ -19,9 +19,7 @@
 
 #ifndef HAVE_BITNCMP
 
-#include <sys/types.h>
-#include <string.h>
-#include <stdlib.h>
+#include "setup.h"
 #include "bitncmp.h"
 
 /*
index af941bf6ba26fbcbae8672d242ccbcfeb94f3bdd..487cd825d768685a87b7938a0ef95e11cdf4abfd 100644 (file)
@@ -19,9 +19,6 @@
 
 #include "setup.h"
 
-
-#include <sys/types.h>
-
 #if defined(WIN32) && !defined(WATT32)
 #include "nameser.h"
 #else
index f076e06654561d6066a61794ea8461b95c98eaec..d07e19e3e8165df80a6be3b7cd5ade23e634b4f3 100644 (file)
@@ -18,8 +18,6 @@
 
 #include "setup.h"
 
-#include <sys/types.h>
-
 #if defined(WIN32) && !defined(WATT32)
 #include "nameser.h"
 #else