summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_application.h
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2017-09-06 02:30:55 +0300
committerIgor Sysoev <igor@sysoev.ru>2017-09-06 02:30:55 +0300
commit58907888e510f6907513da2ea4506ee78b9bf77c (patch)
tree1d16cf9fb4ad4d21c23b3c825c48408b75a13ef4 /src/nxt_application.h
parent22ae3d4ff55ae778688a89c585b5da8eddce6cc0 (diff)
downloadunit-58907888e510f6907513da2ea4506ee78b9bf77c.tar.gz
unit-58907888e510f6907513da2ea4506ee78b9bf77c.tar.bz2
Style fixes.
Diffstat (limited to 'src/nxt_application.h')
-rw-r--r--src/nxt_application.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nxt_application.h b/src/nxt_application.h
index 38bd79f2..3f5c01b5 100644
--- a/src/nxt_application.h
+++ b/src/nxt_application.h
@@ -230,6 +230,7 @@ nxt_app_msg_write_length(u_char *dst, size_t length)
if (length < 128) {
*dst = length;
dst++;
+
} else {
dst[0] = 0x80U | (length >> 24);
dst[1] = 0xFFU & (length >> 16);
@@ -282,6 +283,7 @@ nxt_app_msg_read_length(u_char *src, size_t *length)
if (src[0] < 128) {
*length = src[0];
src++;
+
} else {
*length = ((src[0] & 0x7fU) << 24) +
(src[1] << 16) +