Commit e66f28fc authored by dscho's avatar dscho

socklen_t -> size_t

parent 7dc44503
...@@ -123,7 +123,7 @@ httpCheckFds(rfbScreenInfoPtr rfbScreen) ...@@ -123,7 +123,7 @@ httpCheckFds(rfbScreenInfoPtr rfbScreen)
fd_set fds; fd_set fds;
struct timeval tv; struct timeval tv;
struct sockaddr_in addr; struct sockaddr_in addr;
socklen_t addrlen = sizeof(addr); size_t addrlen = sizeof(addr);
if (!rfbScreen->httpDir) if (!rfbScreen->httpDir)
return; return;
...@@ -208,7 +208,7 @@ static void ...@@ -208,7 +208,7 @@ static void
httpProcessInput(rfbScreenInfoPtr rfbScreen) httpProcessInput(rfbScreenInfoPtr rfbScreen)
{ {
struct sockaddr_in addr; struct sockaddr_in addr;
socklen_t addrlen = sizeof(addr); size_t addrlen = sizeof(addr);
char fullFname[512]; char fullFname[512];
char params[1024]; char params[1024];
char *ptr; char *ptr;
......
...@@ -323,7 +323,7 @@ listenerRun(void *data) ...@@ -323,7 +323,7 @@ listenerRun(void *data)
int client_fd; int client_fd;
struct sockaddr_in peer; struct sockaddr_in peer;
rfbClientPtr cl; rfbClientPtr cl;
socklen_t len; size_t len;
len = sizeof(peer); len = sizeof(peer);
......
...@@ -227,7 +227,7 @@ rfbNewTCPOrUDPClient(rfbScreen,sock,isUDP) ...@@ -227,7 +227,7 @@ rfbNewTCPOrUDPClient(rfbScreen,sock,isUDP)
rfbClientIteratorPtr iterator; rfbClientIteratorPtr iterator;
rfbClientPtr cl,cl_; rfbClientPtr cl,cl_;
struct sockaddr_in addr; struct sockaddr_in addr;
socklen_t addrlen = sizeof(struct sockaddr_in); size_t addrlen = sizeof(struct sockaddr_in);
int i; int i;
cl = (rfbClientPtr)calloc(sizeof(rfbClientRec),1); cl = (rfbClientPtr)calloc(sizeof(rfbClientRec),1);
......
...@@ -195,7 +195,7 @@ rfbCheckFds(rfbScreenInfoPtr rfbScreen,long usec) ...@@ -195,7 +195,7 @@ rfbCheckFds(rfbScreenInfoPtr rfbScreen,long usec)
fd_set fds; fd_set fds;
struct timeval tv; struct timeval tv;
struct sockaddr_in addr; struct sockaddr_in addr;
socklen_t addrlen = sizeof(addr); size_t addrlen = sizeof(addr);
char buf[6]; char buf[6];
const int one = 1; const int one = 1;
int sock; int sock;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment