From 8281e1d171fa73f344c67b8a899144bc6390d593 Mon Sep 17 00:00:00 2001 From: Martin Peach Date: Thu, 14 Jan 2010 20:21:12 +0000 Subject: Changed int optLen to socklen_t to avoid signedness warning svn path=/trunk/externals/mrpeach/; revision=12997 --- net/tcpclient.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/tcpclient.c b/net/tcpclient.c index 433005c..591f801 100644 --- a/net/tcpclient.c +++ b/net/tcpclient.c @@ -341,7 +341,7 @@ int tcpclient_send_byte(t_tcpclient *x, char byte) static int tcpclient_get_socket_send_buf_size(t_tcpclient *x) { int optVal = 0; - int optLen = sizeof(int); + socklen_t optLen = sizeof(int); t_atom output_atom; #ifdef _WIN32 if (getsockopt(x->x_fd, SOL_SOCKET, SO_SNDBUF, (char*)&optVal, &optLen) == SOCKET_ERROR) -- cgit v1.2.1