148 HttpListener *listener = acceptor->listener; |
148 HttpListener *listener = acceptor->listener; |
149 |
149 |
150 for (;;) { |
150 for (;;) { |
151 /* accept connections */ |
151 /* accept connections */ |
152 struct sockaddr_in ca; |
152 struct sockaddr_in ca; |
153 int length = sizeof(ca); |
153 socklen_t length = sizeof(ca); |
154 int clientfd; |
154 int clientfd; |
155 |
155 |
156 /* accept a connection */ |
156 /* accept a connection */ |
157 clientfd = accept( |
157 clientfd = accept( |
158 listener->server_socket, |
158 listener->server_socket, |