aboutsummaryrefslogtreecommitdiff
path: root/ares/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
commitee1235a7cd59dc5887057cc111f35af01e541263 (patch)
treecbd3c35ce2efcabecac1ebbd284460658cd2262e /ares/ares_gethostbyname.c
parentc514a2a89aa1c1e06b70405eedb4e1f70b27fd10 (diff)
Removed inclusion of <sys/types.h> in .c-files
since it's already included through "setup.h".
Diffstat (limited to 'ares/ares_gethostbyname.c')
-rw-r--r--ares/ares_gethostbyname.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/ares/ares_gethostbyname.c b/ares/ares_gethostbyname.c
index 1bd5ac95d..c0fa4743a 100644
--- a/ares/ares_gethostbyname.c
+++ b/ares/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;