lib9p: Remove set but unused sockets[] array from l9p_start_server.

Reported by:	GCC
This commit is contained in:
John Baldwin 2023-06-20 09:28:59 -07:00
parent e6ef68530b
commit b07549f3c1

View File

@ -73,7 +73,6 @@ l9p_start_server(struct l9p_server *server, const char *host, const char *port)
struct kevent kev[2];
struct kevent event[2];
int err, kq, i, val, evs, nsockets = 0;
int sockets[2];
memset(&hints, 0, sizeof(hints));
hints.ai_family = PF_UNSPEC;
@ -98,7 +97,6 @@ l9p_start_server(struct l9p_server *server, const char *host, const char *port)
continue;
}
sockets[nsockets] = s;
EV_SET(&kev[nsockets++], s, EVFILT_READ, EV_ADD | EV_ENABLE, 0,
0, 0);
listen(s, 10);