[nginx] Fixed unused variable in ngx_set_srcaddr_cmsg() on MINIX.
Maxim Dounin
mdounin at mdounin.ru
Wed Jun 4 23:45:29 UTC 2025
details: http://freenginx.org/hg/nginx/rev/05b5d8c4cfd9
branches:
changeset: 9372:05b5d8c4cfd9
user: Maxim Dounin <mdounin at mdounin.ru>
date: Thu Jun 05 02:38:31 2025 +0300
description:
Fixed unused variable in ngx_set_srcaddr_cmsg() on MINIX.
diffstat:
src/os/unix/ngx_udp_sendmsg_chain.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diffs (14 lines):
diff --git a/src/os/unix/ngx_udp_sendmsg_chain.c b/src/os/unix/ngx_udp_sendmsg_chain.c
--- a/src/os/unix/ngx_udp_sendmsg_chain.c
+++ b/src/os/unix/ngx_udp_sendmsg_chain.c
@@ -245,7 +245,10 @@ ngx_sendmsg_vec(ngx_connection_t *c, ngx
size_t
ngx_set_srcaddr_cmsg(struct cmsghdr *cmsg, struct sockaddr *local_sockaddr)
{
+#if (NGX_HAVE_IP_SENDSRCADDR || NGX_HAVE_IP_PKTINFO \
+ || (NGX_HAVE_INET6 && NGX_HAVE_IPV6_RECVPKTINFO))
size_t len;
+#endif
#if (NGX_HAVE_IP_SENDSRCADDR)
struct in_addr *addr;
struct sockaddr_in *sin;
More information about the nginx-devel
mailing list