@matheusbsbs / matheus-bagliano / commits / 78b713a1d0
Fork 0

Make sha1flush void and remove conditional return.

Signed-off-by: David Rientjes <rientjes@google.com> Signed-off-by: Junio C Hamano <junkio@cox.net>

David Rientjes committed Aug 14, 2006 at 13:32 UTC 78b713a1d0909c8eb8dc0bad5df624c33d065c16
1 file changed +2 -2
csum-file.c
+2 -2
@@ -10,7 +10,7 @@
10 #include "cache.h"
11 #include "csum-file.h"
12
13 -static int sha1flush(struct sha1file *f, unsigned int count)
13 +static void sha1flush(struct sha1file *f, unsigned int count)
14 {
15 void *buf = f->buffer;
16
@@ -21,7 +21,7 @@ static int sha1flush(struct sha1file *f, unsigned int count)
21 count -= ret;
22 if (count)
23 continue;
24 - return 0;
24 + return;
25 }
26 if (!ret)
27 die("sha1 file '%s' write error. Out of diskspace", f->name);