--- mod_authn_mysql-0.0.6.c	Wed Feb 19 13:13:21 2003
+++ mod_authn_mysql.c	Wed Feb 19 13:43:22 2003
@@ -191,7 +191,6 @@
 
 static apr_status_t safe_mysql_kill_conn(void *resource, void  *params, apr_pool_t *pool) 
 {
-    apr_status_t rv;
     mysql_config_rec *conf = params;
     mysql_res *res = resource;
 
@@ -527,7 +526,6 @@
 static authn_status check_mysql_pw(request_rec *r, const char *user,
                                  const char *password)
 {
-    apr_status_t rv;
     authn_status ARV = AUTH_DENIED;
     int blah = 0;
     mysql_config *conf;
@@ -599,7 +597,6 @@
     authn_status ARV = AUTH_DENIED;
     mysql_dconfig *dconf = ap_get_module_config(r->per_dir_config,
                                                       &authn_mysql_module);
-    apr_status_t rv;
     char* mysql_hash;
     char* mysql_pass;
     char* query;
@@ -640,7 +637,7 @@
              }
              else {
                  mysql_pass = (char *) apr_pstrcat(r->pool, sql_row[0], NULL);
-	         mysql_hash = (char *) ap_md5(r->pool, apr_pstrcat(r->pool, user, ":", realm, ":", mysql_pass));
+	         mysql_hash = (char *) ap_md5(r->pool, (const unsigned char*)apr_pstrcat(r->pool, user, ":", realm, ":", mysql_pass));
                  *rethash = mysql_hash;
                  ARV = AUTH_USER_FOUND;
              }
