From 9f0f86150e9bf14760e155768dcb7df682257327 Mon Sep 17 00:00:00 2001 From: Andrew Donnellan Date: Mon, 18 Apr 2016 17:05:12 +1000 Subject: Fix sparse warnings Fix some sparse warnings by using NULL instead of 0 and static-ifying a variable not used outside its file. Signed-off-by: Andrew Donnellan Signed-off-by: Samuel Mendoza-Jonas --- discover/discover-server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'discover') 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; -- cgit v1.2.1