Merge branch 'jk/sha1write-void'

Code clean-up.

* jk/sha1write-void:
  do not pretend sha1write returns errors
This commit is contained in:
Junio C Hamano
2014-01-10 10:33:09 -08:00
4 changed files with 3 additions and 7 deletions

View File

@ -86,7 +86,7 @@ int sha1close(struct sha1file *f, unsigned char *result, unsigned int flags)
return fd;
}
int sha1write(struct sha1file *f, const void *buf, unsigned int count)
void sha1write(struct sha1file *f, const void *buf, unsigned int count)
{
while (count) {
unsigned offset = f->offset;
@ -116,7 +116,6 @@ int sha1write(struct sha1file *f, const void *buf, unsigned int count)
}
f->offset = offset;
}
return 0;
}
struct sha1file *sha1fd(int fd, const char *name)