aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_core_module.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2004-03-30 20:31:58 +0000
committerIgor Sysoev <igor@sysoev.ru>2004-03-30 20:31:58 +0000
commita741f8d0216d95a7ee0fbb8a24947de8842900c0 (patch)
tree39b3665a5cb0f7780a139eeea918316342fd92af /src/http/ngx_http_core_module.c
parent6707ba90729c615ffa5bf5ea81b8d32c3d8bd6e4 (diff)
downloadnginx-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.c5
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);