comparison src/http/ngx_http_core_module.c @ 300:502b03d9d2a3

nginx-0.0.3-2004-03-31-00:31:58 import
author Igor Sysoev <igor@sysoev.ru>
date Tue, 30 Mar 2004 20:31:58 +0000
parents ee394e997c77
children 00c5660d2707
comparison
equal deleted inserted replaced
299:46b7eeb8a116 300:502b03d9d2a3
1403 ngx_str_t *value; 1403 ngx_str_t *value;
1404 1404
1405 alias = (cmd->name.len == sizeof("alias") - 1) ? 1 : 0; 1405 alias = (cmd->name.len == sizeof("alias") - 1) ? 1 : 0;
1406 1406
1407 if (lcf->root.data) { 1407 if (lcf->root.data) {
1408 if (lcf->alias == alias) { 1408
1409 /* the (ngx_uint_t) cast is required by gcc 2.7.2.3 */
1410
1411 if ((ngx_uint_t) lcf->alias == alias) {
1409 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, 1412 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
1410 "\"%s\" directive is duplicate", 1413 "\"%s\" directive is duplicate",
1411 cmd->name.data); 1414 cmd->name.data);
1412 } else { 1415 } else {
1413 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, 1416 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,