Skip to content

Commit 337d67a

Browse files
committed
remove const on socache module declarations to avoid segfault in
ap_setup_prelinked_modules() when modules linked in at compile time git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@648499 13f79535-47bb-0310-9956-ffa450edef68
1 parent 524c730 commit 337d67a

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

modules/cache/mod_socache_dbm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ static void register_hooks(apr_pool_t *p)
499499
&socache_dbm);
500500
}
501501

502-
const module AP_MODULE_DECLARE_DATA socache_dbm_module = {
502+
module AP_MODULE_DECLARE_DATA socache_dbm_module = {
503503
STANDARD20_MODULE_STUFF,
504504
NULL, NULL, NULL, NULL, NULL,
505505
register_hooks

modules/cache/mod_socache_dc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ static void register_hooks(apr_pool_t *p)
167167
&socache_dc);
168168
}
169169

170-
const module AP_MODULE_DECLARE_DATA socache_dc_module = {
170+
module AP_MODULE_DECLARE_DATA socache_dc_module = {
171171
STANDARD20_MODULE_STUFF,
172172
NULL, NULL, NULL, NULL, NULL,
173173
register_hooks

modules/cache/mod_socache_memcache.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ static void register_hooks(apr_pool_t *p)
290290
#endif
291291
}
292292

293-
const module AP_MODULE_DECLARE_DATA socache_memcache_module = {
293+
module AP_MODULE_DECLARE_DATA socache_memcache_module = {
294294
STANDARD20_MODULE_STUFF,
295295
NULL, NULL, NULL, NULL, NULL,
296296
register_hooks

modules/cache/mod_socache_shmcb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -839,7 +839,7 @@ static void register_hooks(apr_pool_t *p)
839839
&socache_shmcb);
840840
}
841841

842-
const module AP_MODULE_DECLARE_DATA socache_shmcb_module = {
842+
module AP_MODULE_DECLARE_DATA socache_shmcb_module = {
843843
STANDARD20_MODULE_STUFF,
844844
NULL, NULL, NULL, NULL, NULL,
845845
register_hooks

0 commit comments

Comments
 (0)