chuck 96/05/28 20:19:22
Modified: src mod_auth_anon.c mod_auth_msql.c Log: Submitted by: Randy Terbush I have the following patches to cleanup some -Wall warnings. At least one real bug in the version of mod_auth_pg95.c that I had. /export/pub/apache/dist/contrib/modules/mod_auth_pg95.c is also updated - chuck Revision Changes Path 1.5 +2 -2 apache/src/mod_auth_anon.c Index: mod_auth_anon.c =================================================================== RCS file: /export/home/cvs/apache/src/mod_auth_anon.c,v retrieving revision 1.4 retrieving revision 1.5 diff -C3 -r1.4 -r1.5 *** mod_auth_anon.c 1996/05/27 22:18:49 1.4 --- mod_auth_anon.c 1996/05/29 03:19:17 1.5 *************** *** 262,280 **** int check_anon_access (request_rec *r) { conn_rec *c = r->connection; anon_auth_config_rec *sec = (anon_auth_config_rec *)get_module_config (r->per_dir_config, &anon_auth_module); - /* if (!sec->auth_anon) return DECLINED; if ( strcasecmp(r->connection->user,sec->auth_anon )) return DECLINED; return OK; ! */ return DECLINED; } --- 262,280 ---- int check_anon_access (request_rec *r) { + #ifdef NOTYET conn_rec *c = r->connection; anon_auth_config_rec *sec = (anon_auth_config_rec *)get_module_config (r->per_dir_config, &anon_auth_module); if (!sec->auth_anon) return DECLINED; if ( strcasecmp(r->connection->user,sec->auth_anon )) return DECLINED; return OK; ! #endif return DECLINED; } 1.6 +4 -3 apache/src/mod_auth_msql.c Index: mod_auth_msql.c =================================================================== RCS file: /export/home/cvs/apache/src/mod_auth_msql.c,v retrieving revision 1.5 retrieving revision 1.6 diff -C3 -r1.5 -r1.6 *** mod_auth_msql.c 1996/05/27 21:59:09 1.5 --- mod_auth_msql.c 1996/05/29 03:19:20 1.6 *************** *** 440,445 **** --- 440,446 ---- return sec; } + static char *set_passwd_flag (cmd_parms *cmd, msql_auth_config_rec *sec, int arg) { sec->auth_msql_nopasswd=arg; return NULL; *************** *** 651,657 **** /* if we have a it, try to get it */ if ( hit ) { ! if (currow=msqlFetchRow(results)) { /* copy the first matching field value */ if (!(result=palloc(r->pool,strlen(currow[0])+1))) { sprintf (msql_errstr,"mSQL: Could not get memory for mSQL %s (%s) with [%s]", --- 652,658 ---- /* if we have a it, try to get it */ if ( hit ) { ! if ((currow=msqlFetchRow(results))) { /* copy the first matching field value */ if (!(result=palloc(r->pool,strlen(currow[0])+1))) { sprintf (msql_errstr,"mSQL: Could not get memory for mSQL %s (%s) with [%s]", *************** *** 766,772 **** (msql_auth_config_rec *)get_module_config (r->per_dir_config, &msql_auth_module); conn_rec *c = r->connection; ! char *sent_pw, *real_pw, *colon_pw; int res; --- 767,773 ---- (msql_auth_config_rec *)get_module_config (r->per_dir_config, &msql_auth_module); conn_rec *c = r->connection; ! char *sent_pw, *real_pw; int res; *************** *** 860,866 **** array_header *reqs_arr = requires (r); require_line *reqs = reqs_arr ? (require_line *)reqs_arr->elts : NULL; ! register int x,res; char *t, *w; --- 861,867 ---- array_header *reqs_arr = requires (r); require_line *reqs = reqs_arr ? (require_line *)reqs_arr->elts : NULL; ! register int x; char *t, *w;