Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 1493763

Browse files
Move id_log() to msc_util to fix unit tests; it is declared on msc_util.h already
1 parent 02ca247 commit 1493763

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

‎apache2/apache2_config.c‎

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,6 @@
3030
APLOG_USE_MODULE(security2);
3131
#endif
3232

33-
// Returns the rule id if existing, otherwise the file name & line number
34-
const char* id_log(msre_rule* rule) {
35-
assert(rule != NULL);
36-
assert(rule->actionset != NULL);
37-
assert(rule->ruleset != NULL);
38-
const char* id = rule->actionset->id;
39-
if (!id || id == NOT_SET_P || !*id) id = apr_psprintf(rule->ruleset->mp, "%s (%d)", rule->filename, rule->line_num);
40-
return id;
41-
}
42-
4333
/* -- Directory context creation and initialisation -- */
4434

4535
/**

‎apache2/msc_util.c‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2849,3 +2849,13 @@ char* get_username(apr_pool_t* mp) {
28492849
if (rc != APR_SUCCESS) return "apache";
28502850
return username;
28512851
}
2852+
2853+
// Returns the rule id if existing, otherwise the file name & line number
2854+
const char* id_log(msre_rule* rule) {
2855+
assert(rule != NULL);
2856+
assert(rule->actionset != NULL);
2857+
assert(rule->ruleset != NULL);
2858+
const char* id = rule->actionset->id;
2859+
if (!id || id == NOT_SET_P || !*id) id = apr_psprintf(rule->ruleset->mp, "%s (%d)", rule->filename, rule->line_num);
2860+
return id;
2861+
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /