comparison src/core/ngx_output_chain.c @ 3515:76d252724db5

use ngx_min() and ngx_max()
author Igor Sysoev <igor@sysoev.ru>
date Fri, 14 May 2010 09:55:33 +0000
parents b1b1775698d5
children 7450029ff51e
comparison
equal deleted inserted replaced
3514:58865853f29b 3515:76d252724db5
463 463
464 src = ctx->in->buf; 464 src = ctx->in->buf;
465 dst = ctx->buf; 465 dst = ctx->buf;
466 466
467 size = ngx_buf_size(src); 467 size = ngx_buf_size(src);
468 468 size = ngx_min(size, dst->end - dst->pos);
469 if (size > dst->end - dst->pos) {
470 size = dst->end - dst->pos;
471 }
472 469
473 sendfile = ctx->sendfile & !ctx->directio; 470 sendfile = ctx->sendfile & !ctx->directio;
474 471
475 #if (NGX_SENDFILE_LIMIT) 472 #if (NGX_SENDFILE_LIMIT)
476 473