From 0f2d506845722dbb67ad0979fe205ff47cf935f0 Mon Sep 17 00:00:00 2001 From: hno <> Date: Sun, 10 Nov 2002 08:54:21 +0000 Subject: [PATCH] Get rid of compiler warnings on hash_lookup --- helpers/basic_auth/NCSA/ncsa_auth.c | 2 +- helpers/digest_auth/password/digest_pw_auth.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 { -- 2.47.3