comparison src/core/ngx_module.c @ 6394:5fe617f38222

Dynamic modules: fixed a version mismatch message (ticket #898). Based on a patch by Takashi Takizawa.
author Ruslan Ermilov <ru@nginx.com>
date Thu, 11 Feb 2016 18:46:46 +0300
parents 85dea406e18f
children ce946e0976dc
comparison
equal deleted inserted replaced
6393:70e6e1f12dee 6394:5fe617f38222
169 } 169 }
170 170
171 if (module->version != nginx_version) { 171 if (module->version != nginx_version) {
172 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, 172 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
173 "module \"%V\" version %ui instead of %ui", 173 "module \"%V\" version %ui instead of %ui",
174 file, module->version, nginx_version); 174 file, module->version, (ngx_uint_t) nginx_version);
175 return NGX_ERROR; 175 return NGX_ERROR;
176 } 176 }
177 177
178 if (ngx_strcmp(module->signature, NGX_MODULE_SIGNATURE) != 0) { 178 if (ngx_strcmp(module->signature, NGX_MODULE_SIGNATURE) != 0) {
179 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, 179 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,