diff options
author | Heikki Orsila <heikki.orsila@iki.fi> | 2008-04-27 22:21:58 +0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-04-30 10:11:57 +0400 |
commit | 0104ca09e3abf48ab26fd0599c4b686fcff60ffc (patch) | |
tree | 42399527a842a09866b475db7f91dc82ed43b00f /cache.h | |
parent | 9f1915d3935ea6e5e0a5cc38355a2dc30c4a811f (diff) |
Make read_in_full() and write_in_full() consistent with xread() and xwrite()
xread() and xwrite() return ssize_t values as their native POSIX
counterparts read(2) and write(2).
To be consistent, read_in_full() and write_in_full() should also return
ssize_t values.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -726,8 +726,8 @@ extern const char *git_log_output_encoding; extern void maybe_flush_or_die(FILE *, const char *); extern int copy_fd(int ifd, int ofd); extern int copy_file(const char *dst, const char *src, int mode); -extern int read_in_full(int fd, void *buf, size_t count); -extern int write_in_full(int fd, const void *buf, size_t count); +extern ssize_t read_in_full(int fd, void *buf, size_t count); +extern ssize_t write_in_full(int fd, const void *buf, size_t count); extern void write_or_die(int fd, const void *buf, size_t count); extern int write_or_whine(int fd, const void *buf, size_t count, const char *msg); extern int write_or_whine_pipe(int fd, const void *buf, size_t count, const char *msg); |