X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=discover%2Fdiscover-server.c;h=5f6f4d5190422aa257db6f2f7cbbce6cf887e654;hp=68065895f4dc52b85ccb04633f87e7201398c950;hb=4a9727c96f4e7b6e7cc237e737441bfae83a7a80;hpb=f155a58a64c660e46e74123293482561b816a39a diff --git a/discover/discover-server.c b/discover/discover-server.c index 6806589..5f6f4d5 100644 --- a/discover/discover-server.c +++ b/discover/discover-server.c @@ -286,7 +286,7 @@ static int discover_server_process_connection(void *arg) struct client *client; /* accept the incoming connection */ - fd = accept(server->socket, NULL, 0); + fd = accept(server->socket, NULL, NULL); if (fd < 0) { pb_log("accept: %s\n", strerror(errno)); return 0;