summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rientjes <rientjes@google.com>2006-08-14 20:32:01 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-08-15 02:01:00 (GMT)
commit78b713a1d0909c8eb8dc0bad5df624c33d065c16 (patch)
tree7c2e517d0888bb327a3465dd69ca1ef646124461
parent59076eba6e1a41c2e0032dbd656d8429e9655358 (diff)
downloadgit-78b713a1d0909c8eb8dc0bad5df624c33d065c16.zip
git-78b713a1d0909c8eb8dc0bad5df624c33d065c16.tar.gz
git-78b713a1d0909c8eb8dc0bad5df624c33d065c16.tar.bz2
Make sha1flush void and remove conditional return.
Signed-off-by: David Rientjes <rientjes@google.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
-rw-r--r--csum-file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/csum-file.c b/csum-file.c
index 6a7b40f..e227889 100644
--- a/csum-file.c
+++ b/csum-file.c
@@ -10,7 +10,7 @@
#include "cache.h"
#include "csum-file.h"
-static int sha1flush(struct sha1file *f, unsigned int count)
+static void sha1flush(struct sha1file *f, unsigned int count)
{
void *buf = f->buffer;
@@ -21,7 +21,7 @@ static int sha1flush(struct sha1file *f, unsigned int count)
count -= ret;
if (count)
continue;
- return 0;
+ return;
}
if (!ret)
die("sha1 file '%s' write error. Out of diskspace", f->name);