summaryrefslogtreecommitdiffstats
path: root/cpukit/httpd/socket.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/httpd/socket.c')
-rw-r--r--cpukit/httpd/socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/httpd/socket.c b/cpukit/httpd/socket.c
index 200cf232b5..8a145fe520 100644
--- a/cpukit/httpd/socket.c
+++ b/cpukit/httpd/socket.c
@@ -360,7 +360,7 @@ static void socketAccept(socket_t *sp)
* Accept the connection and prevent inheriting by children (F_SETFD)
*/
len = sizeof(struct sockaddr_in);
- if ((newSock = accept(sp->sock, (struct sockaddr *) &addr, &len)) < 0) {
+ if ((newSock = accept(sp->sock, (struct sockaddr *) &addr, (int *)&len)) < 0) {
return;
}
#ifndef __NO_FCNTL