diff options
Diffstat (limited to 'write_or_die.c')
-rw-r--r-- | write_or_die.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/write_or_die.c b/write_or_die.c index 4e8183e93..046e79d48 100644 --- a/write_or_die.c +++ b/write_or_die.c @@ -17,18 +17,6 @@ int read_in_full(int fd, void *buf, size_t count) return total; } -void read_or_die(int fd, void *buf, size_t count) -{ - ssize_t loaded; - - loaded = read_in_full(fd, buf, count); - if (loaded != count) { - if (loaded < 0) - die("read error (%s)", strerror(errno)); - die("read error: end of file"); - } -} - int write_in_full(int fd, const void *buf, size_t count) { const char *p = buf; |