httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From taka...@apache.org
Subject svn commit: r894377 - in /httpd/httpd/trunk/modules/aaa: mod_authn_dbm.c mod_authz_dbm.c
Date Tue, 29 Dec 2009 13:09:51 GMT
Author: takashi
Date: Tue Dec 29 13:09:50 2009
New Revision: 894377

URL: http://svn.apache.org/viewvc?rev=894377&view=rev
Log:
Fix string constness to get rid of gcc compiler warnings by -Wwrite-strings.

Modified:
    httpd/httpd/trunk/modules/aaa/mod_authn_dbm.c
    httpd/httpd/trunk/modules/aaa/mod_authz_dbm.c

Modified: httpd/httpd/trunk/modules/aaa/mod_authn_dbm.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/aaa/mod_authn_dbm.c?rev=894377&r1=894376&r2=894377&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/aaa/mod_authn_dbm.c (original)
+++ httpd/httpd/trunk/modules/aaa/mod_authn_dbm.c Tue Dec 29 13:09:50 2009
@@ -40,8 +40,8 @@
 #include "mod_auth.h"
 
 typedef struct {
-    char *pwfile;
-    char *dbmtype;
+    const char *pwfile;
+    const char *dbmtype;
 } authn_dbm_config_rec;
 
 static void *create_authn_dbm_dir_config(apr_pool_t *p, char *d)

Modified: httpd/httpd/trunk/modules/aaa/mod_authz_dbm.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/aaa/mod_authz_dbm.c?rev=894377&r1=894376&r2=894377&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/aaa/mod_authz_dbm.c (original)
+++ httpd/httpd/trunk/modules/aaa/mod_authz_dbm.c Tue Dec 29 13:09:50 2009
@@ -31,8 +31,8 @@
 #include "mod_auth.h"
 
 typedef struct {
-    char *grpfile;
-    char *dbmtype;
+    const char *grpfile;
+    const char *dbmtype;
 } authz_dbm_config_rec;
 
 APR_DECLARE_OPTIONAL_FN(char*, authz_owner_get_file_group, (request_rec *r));
@@ -94,7 +94,7 @@
  */
 
 static apr_status_t get_dbm_grp(request_rec *r, char *key1, char *key2,
-                                char *dbmgrpfile, char *dbtype,
+                                const char *dbmgrpfile, const char *dbtype,
                                 const char ** out)
 {
     char *grp_colon, *val;



Mime
View raw message