]> granicus.if.org Git - apache/commitdiff
Fix string constness to get rid of gcc compiler warnings by -Wwrite-strings.
authorTakashi Sato <takashi@apache.org>
Tue, 29 Dec 2009 13:09:50 +0000 (13:09 +0000)
committerTakashi Sato <takashi@apache.org>
Tue, 29 Dec 2009 13:09:50 +0000 (13:09 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@894377 13f79535-47bb-0310-9956-ffa450edef68

modules/aaa/mod_authn_dbm.c
modules/aaa/mod_authz_dbm.c

index 177c4fed54fea46361b6ca35cdcadcc670c2649e..8e7c5471c40aa0694b2c5295a8e92419a2571a57 100644 (file)
@@ -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)
index 9979e1e9cadeb4efe8082d50659e76e262e8638f..2e4eef11639bd08739da72e715f73eca3b905a34 100644 (file)
@@ -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 @@ module AP_MODULE_DECLARE_DATA authz_dbm_module;
  */
 
 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;