mirror of https://github.com/eclipse/paho.mqtt.c
Get rid of unused var
This commit is contained in:
parent
fa7c02e9f5
commit
a353a11b8c
|
|
@ -1465,8 +1465,7 @@ 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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue