aboutsummaryrefslogtreecommitdiff
path: root/pack-write.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2014-01-10 10:33:09 -0800
committerJunio C Hamano <gitster@pobox.com>2014-01-10 10:33:09 -0800
commitf06a5e607dde266884db4a99b70fbee09d5c5efc (patch)
tree76f4f796e45646182ffce1146b6a1017fcfd7320 /pack-write.c
parent4ba46c28471b94de561d00f8b01da79b59527c62 (diff)
parent9af270e8c2a02afd9a3262a2c9312ee7fefbb7a3 (diff)
downloadgit-f06a5e607dde266884db4a99b70fbee09d5c5efc.tar.gz
git-f06a5e607dde266884db4a99b70fbee09d5c5efc.tar.xz
Merge branch 'jk/sha1write-void'
Code clean-up. * jk/sha1write-void: do not pretend sha1write returns errors
Diffstat (limited to 'pack-write.c')
-rw-r--r--pack-write.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/pack-write.c b/pack-write.c
index ddc174e1a..605d01b25 100644
--- a/pack-write.c
+++ b/pack-write.c
@@ -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);
}