summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2017-06-23 13:28:39 +0300
committerIgor Sysoev <igor@sysoev.ru>2017-06-23 13:28:39 +0300
commit3fcda23f159ac23cd869cd2a702569d2b35ab9bb (patch)
tree149fa6bed54812d6d68bb596f2be4dffd7589717 /src
parent9593ce769ac85c75d67c9bd4730f6ce95cab6502 (diff)
downloadunit-3fcda23f159ac23cd869cd2a702569d2b35ab9bb.tar.gz
unit-3fcda23f159ac23cd869cd2a702569d2b35ab9bb.tar.bz2
Style and comment fixes.
Diffstat (limited to 'src')
-rw-r--r--src/nxt_lvlhsh.c4
-rw-r--r--src/nxt_mp.c2
-rw-r--r--src/nxt_sprintf.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/nxt_lvlhsh.c b/src/nxt_lvlhsh.c
index 21fda895..bf730ada 100644
--- a/src/nxt_lvlhsh.c
+++ b/src/nxt_lvlhsh.c
@@ -858,8 +858,8 @@ nxt_lvlhsh_bucket_each(nxt_lvlhsh_each_t *lhe)
if (lhe->entries == 0) {
next = *nxt_lvlhsh_next_bucket(lhe->proto, lhe->bucket);
- lhe->bucket = (next == NULL) ? NXT_LVLHSH_BUCKET_DONE:
- nxt_lvlhsh_bucket(lhe->proto, next);
+ lhe->bucket = (next == NULL) ? NXT_LVLHSH_BUCKET_DONE
+ : nxt_lvlhsh_bucket(lhe->proto, next);
lhe->entries = nxt_lvlhsh_bucket_entries(lhe->proto, next);
lhe->entry = 0;
diff --git a/src/nxt_mp.c b/src/nxt_mp.c
index 711fe2ca..5a7308cd 100644
--- a/src/nxt_mp.c
+++ b/src/nxt_mp.c
@@ -180,7 +180,7 @@ nxt_mp_create(size_t cluster_size, size_t page_alignment, size_t page_size,
nxt_queue_init(chunk_pages);
chunk_pages++;
pages--;
- };
+ }
nxt_queue_init(&mp->free_pages);
nxt_queue_init(&mp->nget_pages);
diff --git a/src/nxt_sprintf.c b/src/nxt_sprintf.c
index 8aefaa50..4b77725f 100644
--- a/src/nxt_sprintf.c
+++ b/src/nxt_sprintf.c
@@ -51,7 +51,7 @@
* %t ptrdiff_t
* %S null-terminated wchar string
* %C wchar
- * %[0][width][u][x|X]Q int182_t/uint128_t
+ * %[0][width][u][x|X]Q int128_t/uint128_t
*/