X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=discover%2Fdiscover-server.c;h=5f6f4d5190422aa257db6f2f7cbbce6cf887e654;hp=e4f3b67767a0ed08ee1fffda3bc7147b6c137a4b;hb=6993af8a4b8bb3c6b1d12172b346c5aa41b7dc61;hpb=0f5d4481891467000c50bf14548c236cfb3e70ad diff --git a/discover/discover-server.c b/discover/discover-server.c index e4f3b67..5f6f4d5 100644 --- a/discover/discover-server.c +++ b/discover/discover-server.c @@ -266,7 +266,8 @@ static int discover_server_process_message(void *arg) case PB_PROTOCOL_ACTION_ADD_URL: url = pb_protocol_deserialise_string((void *) client, message); - device_handler_process_url(client->server->device_handler, url); + device_handler_process_url(client->server->device_handler, + url, NULL, NULL); break; default: @@ -285,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;