|
|
38e5c60 |
diff -up squid-3.0.STABLE2/lib/util.c.fix_warnings squid-3.0.STABLE2/lib/util.c
|
|
|
38e5c60 |
--- squid-3.0.STABLE2/lib/util.c.fix_warnings 2007-12-06 03:37:15.000000000 +0100
|
|
|
38e5c60 |
+++ squid-3.0.STABLE2/lib/util.c 2008-04-03 13:00:40.000000000 +0200
|
|
|
38e5c60 |
@@ -931,8 +931,8 @@ xint64toa(int64_t num)
|
|
|
38e5c60 |
void
|
|
|
38e5c60 |
default_failure_notify(const char *message)
|
|
|
38e5c60 |
{
|
|
|
38e5c60 |
- write(2, message, strlen(message));
|
|
|
38e5c60 |
- write(2, "\n", 1);
|
|
|
38e5c60 |
+ if (write(2, message, strlen(message))) {}
|
|
|
38e5c60 |
+ if (write(2, "\n", 1)) {}
|
|
|
38e5c60 |
abort();
|
|
|
38e5c60 |
}
|
|
|
38e5c60 |
|
|
|
38e5c60 |
diff -up squid-3.0.STABLE2/src/tools.cc.fix_warnings squid-3.0.STABLE2/src/tools.cc
|
|
|
38e5c60 |
--- squid-3.0.STABLE2/src/tools.cc.fix_warnings 2008-04-03 13:05:11.000000000 +0200
|
|
|
38e5c60 |
+++ squid-3.0.STABLE2/src/tools.cc 2008-04-03 13:07:49.000000000 +0200
|
|
|
38e5c60 |
@@ -152,7 +152,7 @@ mail_warranty(void)
|
|
|
38e5c60 |
|
|
|
38e5c60 |
snprintf(command, 256, "%s %s < %s", Config.EmailProgram, Config.adminEmail, filename);
|
|
|
38e5c60 |
|
|
|
38e5c60 |
- system(command); /* XXX should avoid system(3) */
|
|
|
38e5c60 |
+ if (system(command)) {} /* XXX should avoid system(3) */
|
|
|
38e5c60 |
|
|
|
38e5c60 |
unlink(filename);
|
|
|
38e5c60 |
}
|
|
|
38e5c60 |
diff -up squid-3.0.STABLE2/src/comm.cc.fix_warnings squid-3.0.STABLE2/src/comm.cc
|
|
|
38e5c60 |
--- squid-3.0.STABLE2/src/comm.cc.fix_warnings 2008-02-27 11:45:50.000000000 +0100
|
|
|
38e5c60 |
+++ squid-3.0.STABLE2/src/comm.cc 2008-04-03 13:00:40.000000000 +0200
|
|
|
38e5c60 |
@@ -2220,7 +2220,7 @@ comm_accept(int fd, IOACB *handler, void
|
|
|
38e5c60 |
void CommIO::Initialise() {
|
|
|
38e5c60 |
/* Initialize done pipe signal */
|
|
|
38e5c60 |
int DonePipe[2];
|
|
|
38e5c60 |
- pipe(DonePipe);
|
|
|
38e5c60 |
+ if (pipe(DonePipe)) {}
|
|
|
38e5c60 |
DoneFD = DonePipe[1];
|
|
|
38e5c60 |
DoneReadFD = DonePipe[0];
|
|
|
38e5c60 |
fd_open(DoneReadFD, FD_PIPE, "async-io completetion event: main");
|
|
|
38e5c60 |
diff -up squid-3.0.STABLE2/src/StoreIOBuffer.h.fix_warnings squid-3.0.STABLE2/src/StoreIOBuffer.h
|
|
|
38e5c60 |
--- squid-3.0.STABLE2/src/StoreIOBuffer.h.fix_warnings 2007-08-13 19:20:51.000000000 +0200
|
|
|
38e5c60 |
+++ squid-3.0.STABLE2/src/StoreIOBuffer.h 2008-04-03 13:00:40.000000000 +0200
|
|
|
38e5c60 |
@@ -68,8 +68,8 @@ public:
|
|
|
38e5c60 |
|
|
|
38e5c60 |
void dump() const
|
|
|
38e5c60 |
{
|
|
|
38e5c60 |
- fwrite(data, length, 1, stderr);
|
|
|
38e5c60 |
- fwrite("\n", 1, 1, stderr);
|
|
|
38e5c60 |
+ if (fwrite(data, length, 1, stderr)) {}
|
|
|
38e5c60 |
+ if (fwrite("\n", 1, 1, stderr)) {}
|
|
|
38e5c60 |
}
|
|
|
38e5c60 |
|
|
|
38e5c60 |
struct
|