]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Get rid of compiler warnings on hash_lookup
authorhno <>
Sun, 10 Nov 2002 08:54:21 +0000 (08:54 +0000)
committerhno <>
Sun, 10 Nov 2002 08:54:21 +0000 (08:54 +0000)
helpers/basic_auth/NCSA/ncsa_auth.c
helpers/digest_auth/password/digest_pw_auth.c

index 5706837f6802ce1796de689ae33d17d633cc7276..419cdb48c889ab6bbc8f11e3681f2975b32e849a 100644 (file)
@@ -132,7 +132,7 @@ main(int argc, char **argv)
        }
        rfc1738_unescape(user);
        rfc1738_unescape(passwd);
-       u = hash_lookup(hash, user);
+       u = (user_data *)hash_lookup(hash, user);
        if (u == NULL) {
            printf("ERR\n");
        } else if (strcmp(u->passwd, (char *) crypt(passwd, u->passwd))) {
index ee013bab5ac37417c4cdc1620ad329279c36ee53..f24c52624221848ee7a9c35c3e36b86f808fccf9 100644 (file)
@@ -147,7 +147,7 @@ main(int argc, char **argv)
            printf("ERR\n");
            continue;
        }
-       u = hash_lookup(hash, user);
+       u = (user_data *)hash_lookup(hash, user);
        if (u == NULL) {
            printf("ERR\n");
        } else {