diff options
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); |