summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_router.c
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2017-07-25 16:18:31 +0300
committerMax Romanov <max.romanov@nginx.com>2017-07-25 16:18:31 +0300
commit316c77a9de638c54e2574c205276917ff442d06e (patch)
tree7adb1b8cd00a8f54298840531e83f8242907aa60 /src/nxt_router.c
parent578cd547c0f121267f8f66a0523fab67c433a90b (diff)
downloadunit-316c77a9de638c54e2574c205276917ff442d06e.tar.gz
unit-316c77a9de638c54e2574c205276917ff442d06e.tar.bz2
Fixed building on Solaris by Sun C.
Diffstat (limited to 'src/nxt_router.c')
-rw-r--r--src/nxt_router.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nxt_router.c b/src/nxt_router.c
index 40cf0131..0cee933f 100644
--- a/src/nxt_router.c
+++ b/src/nxt_router.c
@@ -382,12 +382,13 @@ nxt_router_conf_data_handler(nxt_task_t *task, nxt_port_recv_msg_t *msg)
b->mem.pos = b->mem.free;
if (ret == NXT_OK) {
- return nxt_router_conf_success(task, tmcf);
+ nxt_router_conf_success(task, tmcf);
+ return;
}
nxt_log(task, NXT_LOG_CRIT, "failed to apply new conf");
- return nxt_router_conf_error(task, tmcf);
+ nxt_router_conf_error(task, tmcf);
}