X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=commit.c;h=ac337c7d7dc1724fa918f9340816d3102edb10bd;hb=7e3ead13e526f67d528e3eea50b1441bdccb62f8;hp=74d66018800d7a2a2b3a3365e87a23049690da6b;hpb=477039c53c456273d59a1d5427fa6eb2deaaa239;p=thirdparty%2Fgit.git diff --git a/commit.c b/commit.c index 74d6601880..ac337c7d7d 100644 --- a/commit.c +++ b/commit.c @@ -245,10 +245,10 @@ int unregister_shallow(const unsigned char *sha1) return 0; } -int parse_commit_buffer(struct commit *item, void *buffer, unsigned long size) +int parse_commit_buffer(struct commit *item, const void *buffer, unsigned long size) { - char *tail = buffer; - char *bufptr = buffer; + const char *tail = buffer; + const char *bufptr = buffer; unsigned char parent[20]; struct commit_list **pptr; struct commit_graft *graft;