From 07c08c05996e3d022fb61e964cde9226477d39ce Mon Sep 17 00:00:00 2001 From: lotodore Date: Sun, 25 Feb 2007 20:06:24 +0000 Subject: [PATCH] Linux fixes. --- src/net/common/clientstate.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/net/common/clientstate.cpp b/src/net/common/clientstate.cpp index cdafcbbc..f9de8410 100644 --- a/src/net/common/clientstate.cpp +++ b/src/net/common/clientstate.cpp @@ -270,7 +270,7 @@ ClientStateConnecting::Process(ClientThread &client) int retVal; ClientData &data = client.GetData(); - struct fd_set writeSet; + fd_set writeSet; struct timeval timeout; FD_ZERO(&writeSet); @@ -284,7 +284,7 @@ ClientStateConnecting::Process(ClientThread &client) { // Check whether the connect call succeeded. int connectResult = 0; - int tmpSize = sizeof(connectResult); + socklen_t tmpSize = sizeof(connectResult); getsockopt(data.sockfd, SOL_SOCKET, SO_ERROR, (char *)&connectResult, &tmpSize); if (connectResult != 0) throw ClientException(ERR_SOCK_CONNECT_FAILED, connectResult);