summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_unit.c
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2022-06-07 13:59:45 +0800
committerMax Romanov <max.romanov@nginx.com>2022-06-07 13:59:45 +0800
commitb4540f0960a54908a6bca9c2bd091c239ae76a53 (patch)
tree88876a81f5c4b01f09ffe452e90a169c1f100c54 /src/nxt_unit.c
parentdf421e36b368c9595e8adedc078b69f3f0c2466b (diff)
downloadunit-b4540f0960a54908a6bca9c2bd091c239ae76a53.tar.gz
unit-b4540f0960a54908a6bca9c2bd091c239ae76a53.tar.bz2
Removing unused tracking fields and functions.
The message tracking is unused since 1d84b9e4b459 commit. This fixes the issue found by Coverity (CID 376263).
Diffstat (limited to 'src/nxt_unit.c')
-rw-r--r--src/nxt_unit.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/nxt_unit.c b/src/nxt_unit.c
index 32bb07ab..f183ac6e 100644
--- a/src/nxt_unit.c
+++ b/src/nxt_unit.c
@@ -942,7 +942,6 @@ nxt_unit_ready(nxt_unit_ctx_t *ctx, int ready_fd, uint32_t stream, int queue_fd)
msg.mmap = 0;
msg.nf = 0;
msg.mf = 0;
- msg.tracking = 0;
nxt_socket_msg_oob_init(&oob, fds);
@@ -2644,7 +2643,6 @@ nxt_unit_mmap_buf_send(nxt_unit_request_info_t *req,
m.msg.mmap = hdr != NULL && m.mmap_msg.size > 0;
m.msg.nf = 0;
m.msg.mf = 0;
- m.msg.tracking = 0;
rc = NXT_UNIT_ERROR;
@@ -3296,7 +3294,6 @@ skip_response_send:
msg.mmap = 0;
msg.nf = 0;
msg.mf = 0;
- msg.tracking = 0;
(void) nxt_unit_port_send(req->ctx, req->response_port,
&msg, sizeof(msg), NULL);
@@ -3619,7 +3616,6 @@ nxt_unit_send_oosm(nxt_unit_ctx_t *ctx, nxt_unit_port_t *port)
msg.mmap = 0;
msg.nf = 0;
msg.mf = 0;
- msg.tracking = 0;
res = nxt_unit_port_send(ctx, lib->router_port, &msg, sizeof(msg), NULL);
if (nxt_slow_path(res != sizeof(msg))) {
@@ -3905,7 +3901,6 @@ nxt_unit_send_mmap(nxt_unit_ctx_t *ctx, nxt_unit_port_t *port, int fd)
msg.mmap = 0;
msg.nf = 0;
msg.mf = 0;
- msg.tracking = 0;
nxt_socket_msg_oob_init(&oob, fds);
@@ -4390,7 +4385,6 @@ nxt_unit_send_shm_ack(nxt_unit_ctx_t *ctx, pid_t pid)
msg.mmap = 0;
msg.nf = 0;
msg.mf = 0;
- msg.tracking = 0;
res = nxt_unit_port_send(ctx, lib->router_port, &msg, sizeof(msg), NULL);
if (nxt_slow_path(res != sizeof(msg))) {
@@ -5356,7 +5350,6 @@ nxt_unit_send_port(nxt_unit_ctx_t *ctx, nxt_unit_port_t *dst,
m.msg.mmap = 0;
m.msg.nf = 0;
m.msg.mf = 0;
- m.msg.tracking = 0;
m.new_port.id = port->id.id;
m.new_port.pid = port->id.pid;