]> git.ozlabs.org Git - petitboot/blobdiff - discover/discover-server.c
ui/ncurses: Properly set focus when updating subset
[petitboot] / discover / discover-server.c
index 68065895f4dc52b85ccb04633f87e7201398c950..5f6f4d5190422aa257db6f2f7cbbce6cf887e654 100644 (file)
@@ -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;