This commit is contained in:
Valentin Bartenev
2018-04-05 15:49:41 +03:00
parent 49bd3a21e0
commit d15b4ca906
9 changed files with 30 additions and 27 deletions

View File

@@ -20,7 +20,7 @@
nxt_inline void
nxt_port_mmap_handler_use(nxt_port_mmap_handler_t *mmap_handler, int i)
{
int c;
int c;
c = nxt_atomic_fetch_add(&mmap_handler->use_count, i);
@@ -888,7 +888,7 @@ nxt_port_mmap_get_method(nxt_task_t *task, nxt_port_t *port, nxt_buf_t *b)
m = NXT_PORT_METHOD_ANY;
for (; b != NULL; b = b->next) {
for (/* void */; b != NULL; b = b->next) {
if (nxt_buf_used_size(b) == 0) {
/* empty buffers does not affect method */
continue;