summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_application.c
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.c
parent22ae3d4ff55ae778688a89c585b5da8eddce6cc0 (diff)
downloadunit-58907888e510f6907513da2ea4506ee78b9bf77c.tar.gz
unit-58907888e510f6907513da2ea4506ee78b9bf77c.tar.bz2
Style fixes.
Diffstat (limited to 'src/nxt_application.c')
-rw-r--r--src/nxt_application.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/nxt_application.c b/src/nxt_application.c
index ef84a9ec..d795c230 100644
--- a/src/nxt_application.c
+++ b/src/nxt_application.c
@@ -297,8 +297,8 @@ nxt_app_start(nxt_task_t *task, void *data)
nxt_app = nxt_app_module_load(task, lang->file);
}
- if (app_conf->working_directory != NULL &&
- app_conf->working_directory[0] != 0)
+ if (app_conf->working_directory != NULL
+ && app_conf->working_directory[0] != 0)
{
ret = chdir(app_conf->working_directory);
@@ -483,7 +483,7 @@ nxt_app_msg_write(nxt_task_t *task, nxt_app_wmsg_t *msg, u_char *c, size_t size)
nxt_memcpy(dst, c, size);
dst[size] = 0;
- nxt_debug(task, "nxt_app_msg_write: %uz %*s", size, (int)size, c);
+ nxt_debug(task, "nxt_app_msg_write: %uz %*s", size, (int) size, c);
} else {
dst_length = 1;
@@ -578,8 +578,7 @@ nxt_app_msg_read_str(nxt_task_t *task, nxt_app_rmsg_t *msg, nxt_str_t *str)
buf->mem.pos = nxt_app_msg_read_length(buf->mem.pos, &length);
- if (nxt_slow_path(nxt_buf_mem_used_size(&buf->mem) < (intptr_t)length))
- {
+ if (nxt_slow_path(nxt_buf_mem_used_size(&buf->mem) < (intptr_t) length)) {
return NXT_ERROR;
}
@@ -589,8 +588,8 @@ nxt_app_msg_read_str(nxt_task_t *task, nxt_app_rmsg_t *msg, nxt_str_t *str)
buf->mem.pos += length;
- nxt_debug(task, "nxt_read_str: %d %*s", (int)length - 1,
- (int)length - 1, str->start);
+ nxt_debug(task, "nxt_read_str: %d %*s", (int) length - 1,
+ (int) length - 1, str->start);
} else {
str->start = NULL;
str->length = 0;
@@ -690,7 +689,7 @@ nxt_app_msg_read_size(nxt_task_t *task, nxt_app_rmsg_t *msg, size_t *size)
buf->mem.pos = nxt_app_msg_read_length(buf->mem.pos, size);
- nxt_debug(task, "nxt_read_size: %d", (int)*size);
+ nxt_debug(task, "nxt_read_size: %d", (int) *size);
return NXT_OK;
}