Stop incorrect warning about malloc/free and add an ignore int to stop another warning

This commit is contained in:
Mike Brady
2014-08-24 16:18:46 +01:00
parent f0195c5d79
commit ac59141848
+2 -1
View File
@@ -29,6 +29,7 @@
#include <fcntl.h>
#include <string.h>
#include <errno.h>
#include <stdio.h>
#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.