diff options
author | Martin Peach <mrpeach@users.sourceforge.net> | 2009-03-02 17:55:56 +0000 |
---|---|---|
committer | Martin Peach <mrpeach@users.sourceforge.net> | 2009-03-02 17:55:56 +0000 |
commit | 82bbe8f6a428edcabd1e6fe04b2d4ab34be395a9 (patch) | |
tree | c8292d0e4af3c354f1ff0953fa9790364fe27611 | |
parent | aea687c3034b7d68e1aa8b476340a6dfef4318ac (diff) |
Fixed some warnings about signed/unsigned variables.
svn path=/trunk/externals/mrpeach/; revision=10829
-rw-r--r-- | net/tcpserver.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/tcpserver.c b/net/tcpserver.c index 9b7ef4e..ac31f25 100644 --- a/net/tcpserver.c +++ b/net/tcpserver.c @@ -590,7 +590,7 @@ static void tcpserver_client_send(t_tcpserver *x, t_symbol *s, int argc, t_atom static int tcpserver_get_socket_send_buf_size(int sockfd) { int optVal = 0; - int optLen = sizeof(int); + unsigned int optLen = sizeof(int); #ifdef MSW if (getsockopt(sockfd, SOL_SOCKET, SO_SNDBUF, (char*)&optVal, &optLen) == SOCKET_ERROR) post("%_get_socket_send_buf_size: getsockopt returned %d\n", objName, WSAGetLastError()); @@ -711,11 +711,11 @@ static void tcpserver_notify(t_tcpserver *x) static void tcpserver_connectpoll(t_tcpserver *x) { struct sockaddr_in incomer_address; - int sockaddrl = (int) sizeof( struct sockaddr ); + unsigned int sockaddrl = sizeof( struct sockaddr ); int fd = accept(x->x_connectsocket, (struct sockaddr*)&incomer_address, &sockaddrl); int i; int optVal; - int optLen = sizeof(int); + unsigned int optLen = sizeof(int); if (fd < 0) post("%s: accept failed", objName); else |