aboutsummaryrefslogtreecommitdiffstats
path: root/checkalias.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2009-05-25 09:54:13 +0000
committerMatthias Andree <matthias.andree@gmx.de>2009-05-25 09:54:13 +0000
commit86d5959f8a96b860af3db4af9bc093c9da86feee (patch)
tree9b57ef0c86d2afb1a72904a432367d7ec898be8e /checkalias.c
parent947c7d6f944972c631ecd005cbd3d573c3f8607b (diff)
downloadfetchmail-86d5959f8a96b860af3db4af9bc093c9da86feee.tar.gz
fetchmail-86d5959f8a96b860af3db4af9bc093c9da86feee.tar.bz2
fetchmail-86d5959f8a96b860af3db4af9bc093c9da86feee.zip
Fix more compiler warnings if compiled without RES_SEARCH.
svn path=/branches/BRANCH_6-3/; revision=5329
Diffstat (limited to 'checkalias.c')
-rw-r--r--checkalias.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/checkalias.c b/checkalias.c
index 80356ed2..353be44d 100644
--- a/checkalias.c
+++ b/checkalias.c
@@ -28,6 +28,7 @@
typedef unsigned char address_t[sizeof (struct in_addr)];
+#ifdef HAVE_RES_SEARCH
static int getaddresses(struct addrinfo **result, const char *name)
{
struct addrinfo hints;
@@ -82,15 +83,18 @@ found:
fm_freeaddrinfo(res1);
return rc;
}
+#endif
int is_host_alias(const char *name, struct query *ctl, struct addrinfo **res)
/* determine whether name is a DNS alias of the mailserver for this query */
{
+#ifdef HAVE_RES_SEARCH
struct mxentry *mxp, *mxrecords;
- struct idlist *idl;
- size_t namelen;
int e;
struct addrinfo hints, *res_st;
+#endif
+ struct idlist *idl;
+ size_t namelen;
struct hostdata *lead_server =
ctl->server.lead_server ? ctl->server.lead_server : &ctl->server;
@@ -143,6 +147,7 @@ int is_host_alias(const char *name, struct query *ctl, struct addrinfo **res)
if (!ctl->server.dns)
return(FALSE);
#ifndef HAVE_RES_SEARCH
+ (void)res;
return(FALSE);
#else
/*