X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=pack-write.c;h=665e2b29b8817aa6a8aa83ccd859ab51e7bb2234;hb=5d3d1cacc139194672a6a184509bb620a19b2497;hp=979bdfff7c516ada7fb36281a22b41d303d1b99c;hpb=6959893b0b65ebc68ce2fb524a8ec15a26ca4972;p=git.git diff --git a/pack-write.c b/pack-write.c index 979bdfff7..665e2b29b 100644 --- a/pack-write.c +++ b/pack-write.c @@ -17,7 +17,8 @@ static int sha1_compare(const void *_a, const void *_b) * the SHA1 hash of sorted object names. The objects array passed in * will be sorted by SHA1 on exit. */ -const char *write_idx_file(const char *index_name, struct pack_idx_entry **objects, int nr_objects, unsigned char *sha1) +char *write_idx_file(char *index_name, struct pack_idx_entry **objects, + int nr_objects, unsigned char *sha1) { struct sha1file *f; struct pack_idx_entry **sorted_by_sha, **list, **last;