Merge branch 'jk/sha1write-void'
Code clean-up. * jk/sha1write-void: do not pretend sha1write returns errors
This commit is contained in:
@ -183,8 +183,7 @@ off_t write_pack_header(struct sha1file *f, uint32_t nr_entries)
|
||||
hdr.hdr_signature = htonl(PACK_SIGNATURE);
|
||||
hdr.hdr_version = htonl(PACK_VERSION);
|
||||
hdr.hdr_entries = htonl(nr_entries);
|
||||
if (sha1write(f, &hdr, sizeof(hdr)))
|
||||
return 0;
|
||||
sha1write(f, &hdr, sizeof(hdr));
|
||||
return sizeof(hdr);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user