diff options
author | dscho <dscho> | 2002-05-02 12:53:29 +0000 |
---|---|---|
committer | dscho <dscho> | 2002-05-02 12:53:29 +0000 |
commit | ff9fbd971bdebf8eca22446139803a2647dbcf5a (patch) | |
tree | 72e85c15b93a562d22cf2e923a70d186f1d6ecb6 /rfbserver.c | |
parent | 22405c3dddfe5cb78b792f3d6b20ba1e5bd427a9 (diff) | |
download | libtdevnc-ff9fbd971bdebf8eca22446139803a2647dbcf5a.tar.gz libtdevnc-ff9fbd971bdebf8eca22446139803a2647dbcf5a.zip |
Tim's Changes
Diffstat (limited to 'rfbserver.c')
-rw-r--r-- | rfbserver.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/rfbserver.c b/rfbserver.c index 913ee54..f936ccc 100644 --- a/rfbserver.c +++ b/rfbserver.c @@ -71,6 +71,9 @@ void rfbDecrClientRef(rfbClientPtr cl) TSIGNAL(cl->deleteCond); UNLOCK(cl->refCountMutex); } +#else +void rfbIncrClientRef(rfbClientPtr cl) {} +void rfbDecrClientRef(rfbClientPtr cl) {} #endif MUTEX(rfbClientListMutex); @@ -190,7 +193,7 @@ rfbNewTCPOrUDPClient(rfbScreen,sock,isUDP) rfbClientIteratorPtr iterator; rfbClientPtr cl,cl_; struct sockaddr_in addr; - int addrlen = sizeof(struct sockaddr_in); + socklen_t addrlen = sizeof(struct sockaddr_in); int i; cl = (rfbClientPtr)calloc(sizeof(rfbClientRec),1); @@ -529,7 +532,7 @@ rfbProcessClientInitMessage(cl) si->format.blueMax = Swap16IfLE(si->format.blueMax); if (strlen(cl->screen->desktopName) > 128) /* sanity check on desktop name len */ - cl->screen->desktopName[128] = 0; + ((char*)cl->screen->desktopName)[128] = 0; strcpy(buf + sz_rfbServerInitMsg, cl->screen->desktopName); len = strlen(buf + sz_rfbServerInitMsg); |