From 930ae2b0f2fc6c6b9dc14862caa5f7e8f9b5f8e5 Mon Sep 17 00:00:00 2001 From: Takashi Sato Date: Tue, 29 Dec 2009 13:09:50 +0000 Subject: [PATCH] Fix string constness to get rid of gcc compiler warnings by -Wwrite-strings. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@894377 13f79535-47bb-0310-9956-ffa450edef68 --- modules/aaa/mod_authn_dbm.c | 4 ++-- modules/aaa/mod_authz_dbm.c | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/aaa/mod_authn_dbm.c b/modules/aaa/mod_authn_dbm.c index 177c4fed54..8e7c5471c4 100644 --- a/modules/aaa/mod_authn_dbm.c +++ b/modules/aaa/mod_authn_dbm.c @@ -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) diff --git a/modules/aaa/mod_authz_dbm.c b/modules/aaa/mod_authz_dbm.c index 9979e1e9ca..2e4eef1163 100644 --- a/modules/aaa/mod_authz_dbm.c +++ b/modules/aaa/mod_authz_dbm.c @@ -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; -- 2.40.0