diff options
author | Valentin Bartenev <vbart@nginx.com> | 2012-05-17 13:47:04 +0000 |
---|---|---|
committer | Valentin Bartenev <vbart@nginx.com> | 2012-05-17 13:47:04 +0000 |
commit | 1c168c78757bc7f6d13000efa04311db6d30e953 (patch) | |
tree | 78e527e2ea2551562aa3a07c155b551f0d1e1a40 /src/core/ngx_regex.c | |
parent | 1b4397443fa707bbfcafb86bb1b0bb326f6d3adf (diff) | |
download | nginx-1c168c78757bc7f6d13000efa04311db6d30e953.tar.gz nginx-1c168c78757bc7f6d13000efa04311db6d30e953.zip |
Fixed the ngx_regex.h header file compatibility with C++.
Diffstat (limited to 'src/core/ngx_regex.c')
-rw-r--r-- | src/core/ngx_regex.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/ngx_regex.c b/src/core/ngx_regex.c index 677f862bf..3771aab8e 100644 --- a/src/core/ngx_regex.c +++ b/src/core/ngx_regex.c @@ -152,7 +152,7 @@ ngx_regex_compile(ngx_regex_compile_t *rc) return NGX_ERROR; } - rc->regex->pcre = re; + rc->regex->code = re; /* do not study at runtime */ @@ -367,7 +367,7 @@ ngx_regex_module_init(ngx_cycle_t *cycle) i = 0; } - elts[i].regex->extra = pcre_study(elts[i].regex->pcre, opt, &errstr); + elts[i].regex->extra = pcre_study(elts[i].regex->code, opt, &errstr); if (errstr != NULL) { ngx_log_error(NGX_LOG_ALERT, cycle->log, 0, @@ -380,7 +380,7 @@ ngx_regex_module_init(ngx_cycle_t *cycle) int jit, n; jit = 0; - n = pcre_fullinfo(elts[i].regex->pcre, elts[i].regex->extra, + n = pcre_fullinfo(elts[i].regex->code, elts[i].regex->extra, PCRE_INFO_JIT, &jit); if (n != 0 || jit != 1) { |