1
0
mirror of https://github.com/KDE/krfb synced 2026-07-01 07:41:17 -07:00

removed warning, shutdown connection explicitly

svn path=/trunk/kdenetwork/krfb/; revision=147625
This commit is contained in:
Tim Jansen
2002-04-07 12:59:29 +00:00
parent 24ee9d0241
commit 6f0c4515ab

View File

@@ -173,7 +173,7 @@ rfbCheckFds(rfbScreenInfoPtr rfbScreen,long usec)
fd_set fds;
struct timeval tv;
struct sockaddr_in addr;
int addrlen = sizeof(addr);
unsigned int addrlen = sizeof(addr);
char buf[6];
const int one = 1;
int sock;
@@ -294,6 +294,7 @@ rfbCloseClient(cl)
LOCK(cl->updateMutex);
if (cl->sock != -1) {
FD_CLR(cl->sock,&(cl->screen->allFds));
shutdown(cl->sock, SHUT_RDWR);
close(cl->sock);
cl->sock = -1;
}