aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Peach <mrpeach@users.sourceforge.net>2010-01-14 20:21:12 +0000
committerMartin Peach <mrpeach@users.sourceforge.net>2010-01-14 20:21:12 +0000
commit8281e1d171fa73f344c67b8a899144bc6390d593 (patch)
tree13b39463f9a89285e1e938ad478eb937caf74366
parent9bfd11451d5fa6512aec0619c3791d66b3b1fcb7 (diff)
Changed int optLen to socklen_t to avoid signedness warning
svn path=/trunk/externals/mrpeach/; revision=12997
-rw-r--r--net/tcpclient.c2
1 files changed, 1 insertions, 1 deletions
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)