From ac591418482788fc61af5057282af42794bc3404 Mon Sep 17 00:00:00 2001 From: Mike Brady Date: Sun, 24 Aug 2014 16:18:46 +0100 Subject: [PATCH] Stop incorrect warning about malloc/free and add an ignore int to stop another warning --- mdns_external.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mdns_external.c b/mdns_external.c index ac329e7c..00c950c6 100644 --- a/mdns_external.c +++ b/mdns_external.c @@ -29,6 +29,7 @@ #include #include #include +#include #include "common.h" #include "mdns.h" @@ -64,7 +65,7 @@ static int fork_execvp(const char *file, char *const argv[]) { // If we reach this point then execve has failed. // Write erno's value into the pipe and exit. - write(execpipe[1], &errno, sizeof(errno)); + int ignore = write(execpipe[1], &errno, sizeof(errno)); _exit(-1); return 0; // Just to make the compiler happy.