Fix compiler warnings

This commit is contained in:
Miroslav Lichvar
2012-02-27 16:08:14 +01:00
parent 15b6ab77ea
commit 2a305d8e16
2 changed files with 7 additions and 4 deletions

View File

@@ -157,7 +157,8 @@ LOG_Fatal_Function(LOG_Facility facility, const char *format, ...)
fprintf(stderr, "Fatal error : %s\n", buf);
}
if (parent_fd) {
write(parent_fd, buf, strlen(buf) + 1);
if (write(parent_fd, buf, strlen(buf) + 1) < 0)
; /* Not much we can do here */
}
#endif