]> git.kaiwu.me - nginx.git/commitdiff
Core: ngx_module_t compatibility with C++.
authorPiotr Sikora <piotrsikora@google.com>
Wed, 10 Feb 2016 00:31:26 +0000 (16:31 -0800)
committerPiotr Sikora <piotrsikora@google.com>
Wed, 10 Feb 2016 00:31:26 +0000 (16:31 -0800)
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>
src/core/ngx_module.h

index cd28c4973e11897a1e53d9ece92088ca2f1fe8f0..3e74def298d7af8393e6b0ac24b9387b11a4031d 100644 (file)
@@ -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;