socklen_t is not available on all systems (for example mac osx 10.2)

replace it by an int right now


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@869 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
Michael Gernoth 2005-03-30 19:35:42 +00:00
parent facb92faa9
commit 6b43ce2883

2
tcp.c
View File

@ -232,7 +232,7 @@ tcp_get_address()
{
static char ipaddr[32];
struct sockaddr_in sockaddr;
socklen_t len = sizeof(sockaddr);
int len = sizeof(sockaddr);
if (getsockname(sock, (struct sockaddr *) &sockaddr, &len) == 0)
{
unsigned char *ip = (unsigned char *) &sockaddr.sin_addr;