Skip to content

Commit

Permalink
Core: ngx_module_t compatibility with C++.
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
PiotrSikora committed Feb 10, 2016
1 parent 839c199 commit 2fe20c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/ngx_module.h
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ struct ngx_module_s {
ngx_uint_t spare1;

ngx_uint_t version;
char *signature;
const char *signature;

void *ctx;
ngx_command_t *commands;
Expand Down

0 comments on commit 2fe20c9

Please sign in to comment.