Skip to content

Commit

Permalink
Removed inline specifier in functions that need to be exported
Browse files Browse the repository at this point in the history
- `ngx_http_modsecurity_process_intervention` &
  `ngx_http_modsecurity_create_ctx` are exported by
  `ngx_http_modsecurity_module.c`, so they can't be declared as
  inline because the MSVC compiler will not export them in the
  generated object file.
  • Loading branch information
eduar-hte committed Apr 29, 2024
1 parent 7b35e23 commit 5bf434a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ngx_http_modsecurity_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ ngx_inline char *ngx_str_to_char(ngx_str_t a, ngx_pool_t *p)
}


ngx_inline int
int
ngx_http_modsecurity_process_intervention (Transaction *transaction, ngx_http_request_t *r, ngx_int_t early_log)
{
char *log = NULL;
Expand Down Expand Up @@ -259,7 +259,7 @@ ngx_http_modsecurity_cleanup(void *data)
}


ngx_inline ngx_http_modsecurity_ctx_t *
ngx_http_modsecurity_ctx_t *
ngx_http_modsecurity_create_ctx(ngx_http_request_t *r)
{
ngx_str_t s;
Expand Down

0 comments on commit 5bf434a

Please sign in to comment.