summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_port.c
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2017-09-15 20:30:34 +0300
committerMax Romanov <max.romanov@nginx.com>2017-09-15 20:30:34 +0300
commit838d9946ac2d9c9a9ba41d5b88209bfc5f2325d0 (patch)
treecd6458cb2362ef2550fc5629407f5f623c11945f /src/nxt_port.c
parent1449e27cb42a5b3ca2d2106a39fee3f1d54a340e (diff)
downloadunit-838d9946ac2d9c9a9ba41d5b88209bfc5f2325d0.tar.gz
unit-838d9946ac2d9c9a9ba41d5b88209bfc5f2325d0.tar.bz2
Introducing named port message handlers to avoid misprints.
Diffstat (limited to 'src/nxt_port.c')
-rw-r--r--src/nxt_port.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nxt_port.c b/src/nxt_port.c
index eef8873b..bec08477 100644
--- a/src/nxt_port.c
+++ b/src/nxt_port.c
@@ -121,11 +121,11 @@ nxt_port_reset_next_id()
void
nxt_port_enable(nxt_task_t *task, nxt_port_t *port,
- nxt_port_handler_t *handlers)
+ nxt_port_handlers_t *handlers)
{
port->pid = nxt_pid;
port->handler = nxt_port_handler;
- port->data = handlers;
+ port->data = (nxt_port_handler_t *) (handlers);
nxt_port_read_enable(task, port);
}
@@ -271,7 +271,7 @@ nxt_port_new_port_handler(nxt_task_t *task, nxt_port_recv_msg_t *msg)
void
-nxt_port_ready_handler(nxt_task_t *task, nxt_port_recv_msg_t *msg)
+nxt_port_process_ready_handler(nxt_task_t *task, nxt_port_recv_msg_t *msg)
{
nxt_port_t *port;
nxt_process_t *process;