diff options
Diffstat (limited to 'write_or_die.c')
-rw-r--r-- | write_or_die.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/write_or_die.c b/write_or_die.c index 49e80aa222..073443247a 100644 --- a/write_or_die.c +++ b/write_or_die.c @@ -82,26 +82,3 @@ void write_or_die(int fd, const void *buf, size_t count) die_errno("write error"); } } - -int write_or_whine_pipe(int fd, const void *buf, size_t count, const char *msg) -{ - if (write_in_full(fd, buf, count) < 0) { - check_pipe(errno); - fprintf(stderr, "%s: write error (%s)\n", - msg, strerror(errno)); - return 0; - } - - return 1; -} - -int write_or_whine(int fd, const void *buf, size_t count, const char *msg) -{ - if (write_in_full(fd, buf, count) < 0) { - fprintf(stderr, "%s: write error (%s)\n", - msg, strerror(errno)); - return 0; - } - - return 1; -} |