[master] c5e3fee66 Flexelinting: symbol not accessed
Nils Goroll
nils.goroll at uplex.de
Fri Jul 14 18:24:07 UTC 2023
commit c5e3fee66f2e524209813763818b76114943be41
Author: Nils Goroll <nils.goroll at uplex.de>
Date: Fri Jul 14 19:40:18 2023 +0200
Flexelinting: symbol not accessed
diff --git a/bin/varnishd/mgt/mgt_cli.c b/bin/varnishd/mgt/mgt_cli.c
index 4a21962e9..21d6bc2d3 100644
--- a/bin/varnishd/mgt/mgt_cli.c
+++ b/bin/varnishd/mgt/mgt_cli.c
@@ -448,13 +448,10 @@ static int
telnet_accept(const struct vev *ev, int what)
{
struct vsb *vsb;
- struct sockaddr_storage addr;
- socklen_t addrlen;
int i;
(void)what;
- addrlen = sizeof addr;
- i = accept(ev->fd, (void *)&addr, &addrlen);
+ i = accept(ev->fd, NULL, NULL);
if (i < 0 && errno == EBADF)
return (1);
if (i < 0)
More information about the varnish-commit
mailing list