comparison src/http/ngx_http_log_handler.c @ 292:a472bfb778b3

nginx-0.0.3-2004-03-17-00:26:01 import
author Igor Sysoev <igor@sysoev.ru>
date Tue, 16 Mar 2004 21:26:01 +0000
parents 87e73f067470
children 5cfd65b8b0a7
comparison
equal deleted inserted replaced
291:117ccc7c4055 292:a472bfb778b3
595 if (!(value = ngx_push_array(cf->args))) { 595 if (!(value = ngx_push_array(cf->args))) {
596 return NGX_CONF_ERROR; 596 return NGX_CONF_ERROR;
597 } 597 }
598 598
599 value->len = sizeof("combined") - 1; 599 value->len = sizeof("combined") - 1;
600 value->data = "combined"; 600 value->data = (u_char *) "combined";
601 601
602 if (!(value = ngx_push_array(cf->args))) { 602 if (!(value = ngx_push_array(cf->args))) {
603 return NGX_CONF_ERROR; 603 return NGX_CONF_ERROR;
604 } 604 }
605 605
697 697
698 if (cf->args->nelts == 3) { 698 if (cf->args->nelts == 3) {
699 name = value[2]; 699 name = value[2];
700 } else { 700 } else {
701 name.len = sizeof("combined") - 1; 701 name.len = sizeof("combined") - 1;
702 name.data = "combined"; 702 name.data = (u_char *) "combined";
703 } 703 }
704 704
705 fmt = lmcf->formats.elts; 705 fmt = lmcf->formats.elts;
706 for (i = 0; i < lmcf->formats.nelts; i++) { 706 for (i = 0; i < lmcf->formats.nelts; i++) {
707 if (fmt[i].name.len == name.len 707 if (fmt[i].name.len == name.len