Get rid of unused var

This commit is contained in:
Ian Craggs 2026-02-12 16:57:58 +00:00
parent fa7c02e9f5
commit a353a11b8c
No known key found for this signature in database
GPG Key ID: A7AE1A8F2CCAB186
1 changed files with 1 additions and 2 deletions

View File

@ -1465,7 +1465,6 @@ int Socket_new(const char* addr, size_t addr_len, int port, SOCKET* sock)
#if !defined(NO_TCP_NODELAY)
{
int opt = 1;
socklen_t opt_size = sizeof(opt);
if (setsockopt(*sock, IPPROTO_TCP, TCP_NODELAY, &opt, sizeof(opt)) != 0)
Log(LOG_ERROR, -1, "Could not set TCP_NODELAY for socket %d", *sock);