summaryrefslogtreecommitdiff
path: root/ares_gethostbyname.c
diff options
context:
space:
mode:
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;