X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=pack-write.c;h=9f47cf9961212242bc01082944e83fb54da2a515;hb=251a4951a20b23760c3ccf3f3122d4394ab37357;hp=741efcd93bd2a2c105bfe2d771d32857ce2ae816;hpb=69abb194eed5b2f06590d0145e4034300c3e7ac9;p=git.git diff --git a/pack-write.c b/pack-write.c index 741efcd93..9f47cf996 100644 --- a/pack-write.c +++ b/pack-write.c @@ -17,8 +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. */ -char *write_idx_file(char *index_name, struct pack_idx_entry **objects, - int nr_objects, unsigned char *sha1) +const char *write_idx_file(const 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;