]> Pileus Git - ~andy/fetchmail/blobdiff - checkalias.c
Sign .xz; upload to sf.net; upload .xz to local site.
[~andy/fetchmail] / checkalias.c
index 353be44d1f3404a75bc4d0f3aefe0497035a2f27..2e50ea09222d3cd61b469b953839e41a6665c027 100644 (file)
@@ -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);