summaryrefslogtreecommitdiff
path: root/ares_gethostbyname.c
diff options
context:
space:
mode:
authorGisle Vanem <gvanem@broadpark.no>2007-02-26 04:33:19 +0000
committerGisle Vanem <gvanem@broadpark.no>2007-02-26 04:33:19 +0000
commita6271600417e14d84bffd9b78fb9ad2b119db226 (patch)
treedd1118ee2c1d1c2a1c0a309435e92077f9ade428 /ares_gethostbyname.c
parent7c768759582e74aaa3e39b17d7ddc8f0603fb4bb (diff)
downloadc-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".
Diffstat (limited to 'ares_gethostbyname.c')
-rw-r--r--ares_gethostbyname.c5
1 files changed, 2 insertions, 3 deletions
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;