Add const to parse_{commit,tag}_buffer()
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
a2b7a3b3a9
commit
cf7b1cad0e
6
commit.c
6
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;
|
||||
|
Reference in New Issue
Block a user