summaryrefslogtreecommitdiffstats
path: root/discover/discover-server.c
diff options
context:
space:
mode:
authorAndrew Donnellan <andrew.donnellan@au1.ibm.com>2016-04-18 17:05:12 +1000
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>2016-04-20 16:09:29 +1000
commit9f0f86150e9bf14760e155768dcb7df682257327 (patch)
treeb9b8d375ecee1ff20a06446875b6551561f17fb8 /discover/discover-server.c
parent5c16bba845d94ef86ad6fe6fa211cbc148e77717 (diff)
downloadtalos-petitboot-9f0f86150e9bf14760e155768dcb7df682257327.tar.gz
talos-petitboot-9f0f86150e9bf14760e155768dcb7df682257327.zip
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 <andrew.donnellan@au1.ibm.com> Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
Diffstat (limited to 'discover/discover-server.c')
-rw-r--r--discover/discover-server.c2
1 files changed, 1 insertions, 1 deletions
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;
OpenPOWER on IntegriCloud