Skip to content

Commit e23dccf

Browse files
Add missing const
1 parent 812b254 commit e23dccf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apache2/apache2_config.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@
3434
# define ap_log_perror(a, b, c, d, fmt, ...) fprintf(stderr, fmt "\n", __VA_ARGS__)
3535
#endif
3636

37-
const char* id_log(msre_rule* rule, apr_pool_t* pool) {
37+
const char* id_log(const msre_rule* rule, apr_pool_t* pool) {
3838
assert(rule != NULL);
3939
assert(rule->actionset != NULL);
4040
assert(rule->ruleset != NULL);
4141
const char* id = rule->actionset->id;
4242
if (!id || id == NOT_SET_P || !*id) id = apr_psprintf(pool, "%s (%d)", rule->filename, rule->line_num);
4343
return id;
4444
}
45-
const char* id_log_ifnotempty(msre_actionset* actionset) {
45+
const char* id_log_ifnotempty(const msre_actionset* actionset) {
4646
if (actionset == NULL) return "";
4747
const char* id = actionset->id;
4848
if (!id || id == NOT_SET_P || !*id) id = "";

0 commit comments

Comments
 (0)