From b5737df8b9eef8a7001432c1f88a7dcacf2e56a8 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Fri, 19 Mar 2010 10:36:22 +0100 Subject: Further warning fixes. --- checkalias.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'checkalias.c') diff --git a/checkalias.c b/checkalias.c index 353be44d..2e50ea09 100644 --- a/checkalias.c +++ b/checkalias.c @@ -129,7 +129,7 @@ int is_host_alias(const char *name, struct query *ctl, struct addrinfo **res) namelen = strlen(name); for (idl = lead_server->akalist; idl; idl = idl->next) { - char *ep; + const char *ep; /* * Test is >= here because str_in_list() should have caught the @@ -138,7 +138,7 @@ int is_host_alias(const char *name, struct query *ctl, struct addrinfo **res) */ if (strlen(idl->id) >= namelen) continue; - ep = (char *)name + (namelen - strlen(idl->id)); + ep = name + (namelen - strlen(idl->id)); /* a suffix led by . must match */ if (ep[-1] == '.' && !strcasecmp(ep, idl->id)) return(TRUE); -- cgit v1.2.3