Skip to content

Commit 64d4418

Browse files
committed
Use standard httpd macros to initialize the module structure. Fixes:
msc_test.c:84:5: error: initialization of ‘int’ from ‘void *’ makes integer from pointer without a cast [-Wint-conversion] 84 | NULL, | ^~~~ msc_test.c:84:5: note: (near initialization for ‘security2_module.version’) msc_test.c:85:5: error: initialization of ‘int’ from ‘void *’ makes integer from pointer without a cast [-Wint-conversion] 85 | NULL, | ^~~~ msc_test.c:85:5: note: (near initialization for ‘security2_module.minor_version’) ...
1 parent 993e283 commit 64d4418

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

tests/msc_test.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,7 @@ char DSOLOCAL *real_server_signature = NULL;
8181
int DSOLOCAL remote_rules_fail_action = REMOTE_RULES_ABORT_ON_FAIL;
8282
char DSOLOCAL *remote_rules_fail_message = NULL;
8383
module AP_MODULE_DECLARE_DATA security2_module = {
84-
NULL,
85-
NULL,
86-
NULL,
87-
NULL,
88-
NULL,
84+
STANDARD20_MODULE_STUFF,
8985
NULL,
9086
NULL
9187
};

0 commit comments

Comments
 (0)