/* Set the socket's send and receive buffer sizes. */
if ((channel->socket_send_buffer_size > 0) &&
setsockopt(s, SOL_SOCKET, SO_SNDBUF,
- (const void*)&channel->socket_send_buffer_size,
+ (void *)&channel->socket_send_buffer_size,
sizeof(channel->socket_send_buffer_size)) == -1)
return -1;
if ((channel->socket_receive_buffer_size > 0) &&
setsockopt(s, SOL_SOCKET, SO_RCVBUF,
- (const void*)&channel->socket_receive_buffer_size,
+ (void *)&channel->socket_receive_buffer_size,
sizeof(channel->socket_receive_buffer_size)) == -1)
return -1;
*/
opt = 1;
if (setsockopt(s, IPPROTO_TCP, TCP_NODELAY,
- (const void*)&opt, sizeof(opt)) == -1)
+ (void *)&opt, sizeof(opt)) == -1)
{
close(s);
return -1;