Commit ad456e5a authored by Pekka Pessi's avatar Pekka Pessi
Browse files

Silenced warnings in tport_type_tcp.c.

darcs-hash:20060511140401-65a35-3c7dbf52f966a9b15403dd1298ba9c0ab1ab9834.gz
parent 28994659
......@@ -188,7 +188,7 @@ static int tport_tcp_setsndbuf(int socket, int atleast)
int size = 0;
socklen_t sizelen = sizeof size;
if (getsockopt(socket, SOL_SOCKET, SO_SNDBUF, &size, &sizelen) < 0)
if (getsockopt(socket, SOL_SOCKET, SO_SNDBUF, (void *)&size, &sizelen) < 0)
return -1;
if (sizelen != sizeof size)
......@@ -197,7 +197,8 @@ static int tport_tcp_setsndbuf(int socket, int atleast)
if (size >= atleast)
return 0; /* OK */
return setsockopt(socket, SOL_SOCKET, SO_SNDBUF, &atleast, sizeof atleast);
return setsockopt(socket, SOL_SOCKET, SO_SNDBUF,
(void *)&atleast, sizeof atleast);
#else
return 0;
#endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment