diff options
author | dscho <dscho> | 2003-08-18 09:24:03 +0000 |
---|---|---|
committer | dscho <dscho> | 2003-08-18 09:24:03 +0000 |
commit | e66f28fcaa85ded2df9322f3e9e2de144918addb (patch) | |
tree | c62a6acab82e0200364fba26d0477c8818a4fea0 | |
parent | 7dc44503f68759d0c0975898f196a494f1bb665e (diff) | |
download | libtdevnc-e66f28fcaa85ded2df9322f3e9e2de144918addb.tar.gz libtdevnc-e66f28fcaa85ded2df9322f3e9e2de144918addb.zip |
socklen_t -> size_t
-rw-r--r-- | httpd.c | 4 | ||||
-rw-r--r-- | main.c | 2 | ||||
-rw-r--r-- | rfbserver.c | 2 | ||||
-rw-r--r-- | sockets.c | 2 |
4 files changed, 5 insertions, 5 deletions
@@ -123,7 +123,7 @@ httpCheckFds(rfbScreenInfoPtr rfbScreen) fd_set fds; struct timeval tv; struct sockaddr_in addr; - socklen_t addrlen = sizeof(addr); + size_t addrlen = sizeof(addr); if (!rfbScreen->httpDir) return; @@ -208,7 +208,7 @@ static void httpProcessInput(rfbScreenInfoPtr rfbScreen) { struct sockaddr_in addr; - socklen_t addrlen = sizeof(addr); + size_t addrlen = sizeof(addr); char fullFname[512]; char params[1024]; char *ptr; @@ -323,7 +323,7 @@ listenerRun(void *data) int client_fd; struct sockaddr_in peer; rfbClientPtr cl; - socklen_t len; + size_t len; len = sizeof(peer); diff --git a/rfbserver.c b/rfbserver.c index d841c20..7ce086d 100644 --- a/rfbserver.c +++ b/rfbserver.c @@ -227,7 +227,7 @@ rfbNewTCPOrUDPClient(rfbScreen,sock,isUDP) rfbClientIteratorPtr iterator; rfbClientPtr cl,cl_; struct sockaddr_in addr; - socklen_t addrlen = sizeof(struct sockaddr_in); + size_t addrlen = sizeof(struct sockaddr_in); int i; cl = (rfbClientPtr)calloc(sizeof(rfbClientRec),1); @@ -195,7 +195,7 @@ rfbCheckFds(rfbScreenInfoPtr rfbScreen,long usec) fd_set fds; struct timeval tv; struct sockaddr_in addr; - socklen_t addrlen = sizeof(addr); + size_t addrlen = sizeof(addr); char buf[6]; const int one = 1; int sock; |