diff options
author | Gisle Vanem <gvanem@broadpark.no> | 2007-02-26 04:33:19 +0000 |
---|---|---|
committer | Gisle Vanem <gvanem@broadpark.no> | 2007-02-26 04:33:19 +0000 |
commit | ee1235a7cd59dc5887057cc111f35af01e541263 (patch) | |
tree | cbd3c35ce2efcabecac1ebbd284460658cd2262e /ares/ares_gethostbyaddr.c | |
parent | c514a2a89aa1c1e06b70405eedb4e1f70b27fd10 (diff) |
Removed inclusion of <sys/types.h> in .c-files
since it's already included through "setup.h".
Diffstat (limited to 'ares/ares_gethostbyaddr.c')
-rw-r--r-- | ares/ares_gethostbyaddr.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ares/ares_gethostbyaddr.c b/ares/ares_gethostbyaddr.c index db0ac46b3..7ea7ebbc0 100644 --- a/ares/ares_gethostbyaddr.c +++ b/ares/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; |