Eliminate almost all warnings from -Wall

This commit is contained in:
Mike Brady
2018-03-07 14:29:14 +00:00
parent a7d82ae823
commit 07e46565ca
12 changed files with 125 additions and 96 deletions
+2 -1
View File
@@ -63,7 +63,8 @@ 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.
int ignore = write(execpipe[1], &errno, sizeof(errno));
if(write(execpipe[1], &errno, sizeof(errno)) != sizeof(errno))
debug(1,"Execve has failed and there was a further error writing an error message, duh.");
debug(1, "execve has failed.");
_exit(-1);
return 0; // Just to make the compiler happy.