From e66f28fcaa85ded2df9322f3e9e2de144918addb Mon Sep 17 00:00:00 2001 From: dscho Date: Mon, 18 Aug 2003 09:24:03 +0000 Subject: socklen_t -> size_t --- httpd.c | 4 ++-- main.c | 2 +- rfbserver.c | 2 +- sockets.c | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/httpd.c b/httpd.c index 7a0574e..2f1ffdd 100644 --- a/httpd.c +++ b/httpd.c @@ -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; diff --git a/main.c b/main.c index 04309e8..e394a48 100644 --- a/main.c +++ b/main.c @@ -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); diff --git a/sockets.c b/sockets.c index a13fcf6..9086326 100644 --- a/sockets.c +++ b/sockets.c @@ -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; -- cgit v1.2.1