summaryrefslogtreecommitdiffstats
path: root/sockets.c
diff options
context:
space:
mode:
Diffstat (limited to 'sockets.c')
-rw-r--r--sockets.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/sockets.c b/sockets.c
index 7134468..4607420 100644
--- a/sockets.c
+++ b/sockets.c
@@ -69,9 +69,9 @@ struct timeval
#include "rfb.h"
-#ifndef WIN32
+//#ifndef WIN32
int max(int i,int j) { return(i<j?j:i); }
-#endif
+//#endif
int rfbMaxClientWait = 20000; /* time (ms) after which we decide client has
gone away - needed to stop us hanging */
@@ -203,9 +203,6 @@ rfbCheckFds(rfbScreenInfoPtr rfbScreen,long usec)
rfbLog("Got connection from client %s\n", inet_ntoa(addr.sin_addr));
- FD_SET(sock, &(rfbScreen->allFds));
- rfbScreen->maxFd = max(sock,rfbScreen->maxFd);
-
rfbNewClient(rfbScreen,sock);
FD_CLR(rfbScreen->rfbListenSock, &fds);