diff options
author | Valentin Bartenev <vbart@nginx.com> | 2018-04-05 15:49:41 +0300 |
---|---|---|
committer | Valentin Bartenev <vbart@nginx.com> | 2018-04-05 15:49:41 +0300 |
commit | d15b4ca90639d0e6a5caab9ec905e49228072faf (patch) | |
tree | b929a2fed7cc997a5e18e42e74858c09d8258306 /src/nxt_buf.c | |
parent | 49bd3a21e0f995c895b445c0566227661418c2bc (diff) | |
download | unit-d15b4ca90639d0e6a5caab9ec905e49228072faf.tar.gz unit-d15b4ca90639d0e6a5caab9ec905e49228072faf.tar.bz2 |
Style.
Diffstat (limited to 'src/nxt_buf.c')
-rw-r--r-- | src/nxt_buf.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/nxt_buf.c b/src/nxt_buf.c index e2f1f047..91846e4d 100644 --- a/src/nxt_buf.c +++ b/src/nxt_buf.c @@ -73,8 +73,8 @@ nxt_buf_mem_ts_alloc(nxt_task_t *task, nxt_mp_t *mp, size_t size) b->is_ts = 1; if (size != 0) { - b->mem.start = nxt_pointer_to(b, NXT_BUF_MEM_SIZE + - sizeof(nxt_buf_ts_t)); + b->mem.start = nxt_pointer_to(b, NXT_BUF_MEM_SIZE + + sizeof(nxt_buf_ts_t)); b->mem.pos = b->mem.start; b->mem.free = b->mem.start; b->mem.end = b->mem.start + size; @@ -304,8 +304,9 @@ nxt_buf_make_plain(nxt_mp_t *mp, nxt_buf_t *src, size_t size) } for (i = src; i != NULL; i = i->next) { - if (nxt_slow_path(nxt_buf_mem_free_size(&b->mem) < - nxt_buf_used_size(i))) { + if (nxt_slow_path(nxt_buf_mem_free_size(&b->mem) + < nxt_buf_used_size(i))) + { break; } |