diff options
author | Igor Sysoev <igor@sysoev.ru> | 2004-03-30 20:31:58 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2004-03-30 20:31:58 +0000 |
commit | a741f8d0216d95a7ee0fbb8a24947de8842900c0 (patch) | |
tree | 39b3665a5cb0f7780a139eeea918316342fd92af /src/http/ngx_http_core_module.c | |
parent | 6707ba90729c615ffa5bf5ea81b8d32c3d8bd6e4 (diff) | |
download | nginx-a741f8d0216d95a7ee0fbb8a24947de8842900c0.tar.gz nginx-a741f8d0216d95a7ee0fbb8a24947de8842900c0.zip |
nginx-0.0.3-2004-03-31-00:31:58 import
Diffstat (limited to 'src/http/ngx_http_core_module.c')
-rw-r--r-- | src/http/ngx_http_core_module.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c index 48b7ba498..1f449e239 100644 --- a/src/http/ngx_http_core_module.c +++ b/src/http/ngx_http_core_module.c @@ -1405,7 +1405,10 @@ static char *ngx_set_root(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) alias = (cmd->name.len == sizeof("alias") - 1) ? 1 : 0; if (lcf->root.data) { - if (lcf->alias == alias) { + + /* the (ngx_uint_t) cast is required by gcc 2.7.2.3 */ + + if ((ngx_uint_t) lcf->alias == alias) { ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, "\"%s\" directive is duplicate", cmd->name.data); |