--- lib/util.c.orig 2008-07-15 15:03:39.000000000 +1200 +++ lib/util.c 2008-07-15 15:05:21.000000000 +1200 @@ -931,8 +931,8 @@ void default_failure_notify(const char *message) { - write(2, message, strlen(message)); - write(2, "\n", 1); + if(write(2, message, strlen(message))) {} + if(write(2, "\n", 1)) {} abort(); } --- src/StoreIOBuffer.h.orig 2008-07-15 15:04:05.000000000 +1200 +++ src/StoreIOBuffer.h 2008-07-15 15:06:21.000000000 +1200 @@ -68,8 +68,8 @@ void dump() const { - fwrite(data, length, 1, stderr); - fwrite("\n", 1, 1, stderr); + if(fwrite(data, length, 1, stderr)) {} + if(fwrite("\n", 1, 1, stderr)) {} } struct --- src/comm.cc.orig 2008-07-15 15:04:25.000000000 +1200 +++ src/comm.cc 2008-07-15 15:07:18.000000000 +1200 @@ -2220,7 +2220,7 @@ void CommIO::Initialise() { /* Initialize done pipe signal */ int DonePipe[2]; - pipe(DonePipe); + if(pipe(DonePipe)) {} DoneFD = DonePipe[1]; DoneReadFD = DonePipe[0]; fd_open(DoneReadFD, FD_PIPE, "async-io completetion event: main"); --- src/tools.cc.orig 2008-07-15 15:04:37.000000000 +1200 +++ src/tools.cc 2008-07-15 15:07:53.000000000 +1200 @@ -152,7 +152,7 @@ snprintf(command, 256, "%s %s < %s", Config.EmailProgram, Config.adminEmail, filename); - system(command); /* XXX should avoid system(3) */ + if(system(command)) {} /* XXX should avoid system(3) */ unlink(filename); }