mirror of
https://github.com/nginx/nginx.git
synced 2025-06-07 17:52:38 +08:00
Core: ngx_module_t compatibility with C++.
Changes to NGX_MODULE_V1 and ngx_module_t in 85dea406e18f (1.9.11) broke all modules written in C++, because ISO C++11 does not allow conversion from string literal to char *. Signed-off-by: Piotr Sikora <piotrsikora@google.com>
This commit is contained in:
parent
839c1997d9
commit
2fe20c9b34
@ -253,7 +253,7 @@ struct ngx_module_s {
|
|||||||
ngx_uint_t spare1;
|
ngx_uint_t spare1;
|
||||||
|
|
||||||
ngx_uint_t version;
|
ngx_uint_t version;
|
||||||
char *signature;
|
const char *signature;
|
||||||
|
|
||||||
void *ctx;
|
void *ctx;
|
||||||
ngx_command_t *commands;
|
ngx_command_t *commands;
|
||||||
|
Loading…
Reference in New Issue
Block a user