Mercurial > hg > nginx-quic
comparison src/http/ngx_http_file_cache.c @ 5359:2fda9065d0f4
Win32: Borland C compatibility fixes.
Several false positive warnings silenced, notably W8012 "Comparing
signed and unsigned" (due to u_short values promoted to int), and
W8072 "Suspicious pointer arithmetic" (due to large type values added
to pointers).
With this patch, it's now again possible to compile nginx using bcc32,
with options we normally compile on win32 minus ipv6 and ssl.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Wed, 04 Sep 2013 20:48:23 +0400 |
parents | 654c1631dc86 |
children | 43ccaf8e8728 |
comparison
equal
deleted
inserted
replaced
5358:670ceaba03d8 | 5359:2fda9065d0f4 |
---|---|
501 ngx_log_error(NGX_LOG_CRIT, r->connection->log, 0, | 501 ngx_log_error(NGX_LOG_CRIT, r->connection->log, 0, |
502 "cache file \"%s\" has md5 collision", c->file.name.data); | 502 "cache file \"%s\" has md5 collision", c->file.name.data); |
503 return NGX_DECLINED; | 503 return NGX_DECLINED; |
504 } | 504 } |
505 | 505 |
506 if (h->body_start > c->body_start) { | 506 if ((size_t) h->body_start > c->body_start) { |
507 ngx_log_error(NGX_LOG_CRIT, r->connection->log, 0, | 507 ngx_log_error(NGX_LOG_CRIT, r->connection->log, 0, |
508 "cache file \"%s\" has too long header", | 508 "cache file \"%s\" has too long header", |
509 c->file.name.data); | 509 c->file.name.data); |
510 return NGX_DECLINED; | 510 return NGX_DECLINED; |
511 } | 511 } |