aboutsummaryrefslogtreecommitdiff
path: root/refs.c
diff options
context:
space:
mode:
authorHeikki Orsila <heikki.orsila@iki.fi>2008-04-27 21:21:58 +0300
committerJunio C Hamano <gitster@pobox.com>2008-04-29 23:11:57 -0700
commit0104ca09e3abf48ab26fd0599c4b686fcff60ffc (patch)
tree42399527a842a09866b475db7f91dc82ed43b00f /refs.c
parent9f1915d3935ea6e5e0a5cc38355a2dc30c4a811f (diff)
downloadgit-0104ca09e3abf48ab26fd0599c4b686fcff60ffc.tar.gz
git-0104ca09e3abf48ab26fd0599c4b686fcff60ffc.tar.xz
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 'refs.c')
-rw-r--r--refs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/refs.c b/refs.c
index 1b0050eee..4db73ed8f 100644
--- a/refs.c
+++ b/refs.c
@@ -368,7 +368,8 @@ int resolve_gitlink_ref(const char *path, const char *refname, unsigned char *re
const char *resolve_ref(const char *ref, unsigned char *sha1, int reading, int *flag)
{
- int depth = MAXDEPTH, len;
+ int depth = MAXDEPTH;
+ ssize_t len;
char buffer[256];
static char ref_buffer[256];