mirror of https://github.com/eclipse/paho.mqtt.c
Get rid of unused var
This commit is contained in:
parent
fa7c02e9f5
commit
a353a11b8c
|
|
@ -1465,7 +1465,6 @@ int Socket_new(const char* addr, size_t addr_len, int port, SOCKET* sock)
|
||||||
#if !defined(NO_TCP_NODELAY)
|
#if !defined(NO_TCP_NODELAY)
|
||||||
{
|
{
|
||||||
int opt = 1;
|
int opt = 1;
|
||||||
socklen_t opt_size = sizeof(opt);
|
|
||||||
|
|
||||||
if (setsockopt(*sock, IPPROTO_TCP, TCP_NODELAY, &opt, sizeof(opt)) != 0)
|
if (setsockopt(*sock, IPPROTO_TCP, TCP_NODELAY, &opt, sizeof(opt)) != 0)
|
||||||
Log(LOG_ERROR, -1, "Could not set TCP_NODELAY for socket %d", *sock);
|
Log(LOG_ERROR, -1, "Could not set TCP_NODELAY for socket %d", *sock);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue