From: hno <> Date: Sun, 10 Nov 2002 08:54:21 +0000 (+0000) Subject: Get rid of compiler warnings on hash_lookup X-Git-Tag: SQUID_3_0_PRE1~543 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f2d506845722dbb67ad0979fe205ff47cf935f0;p=thirdparty%2Fsquid.git Get rid of compiler warnings on hash_lookup --- diff --git a/helpers/basic_auth/NCSA/ncsa_auth.c b/helpers/basic_auth/NCSA/ncsa_auth.c index 5706837f68..419cdb48c8 100644 --- a/helpers/basic_auth/NCSA/ncsa_auth.c +++ b/helpers/basic_auth/NCSA/ncsa_auth.c @@ -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))) { diff --git a/helpers/digest_auth/password/digest_pw_auth.c b/helpers/digest_auth/password/digest_pw_auth.c index ee013bab5a..f24c526242 100644 --- a/helpers/digest_auth/password/digest_pw_auth.c +++ b/helpers/digest_auth/password/digest_pw_auth.c @@ -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 {