From 5d6ccf5ce7f28e576a87f6c6f4f99fae90e06db6 Mon Sep 17 00:00:00 2001 From: Jason McMullan Date: Fri, 3 Jun 2005 11:05:39 -0400 Subject: [PATCH] Anal retentive 'const unsigned char *sha1' Make 'sha1' parameters const where possible Signed-off-by: Jason McMullan Signed-off-by: Linus Torvalds --- commit.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'commit.h') diff --git a/commit.h b/commit.h index 51d95764ab..57c1b62faf 100644 --- a/commit.h +++ b/commit.h @@ -19,8 +19,8 @@ struct commit { extern const char *commit_type; -struct commit *lookup_commit(unsigned char *sha1); -struct commit *lookup_commit_reference(unsigned char *sha1); +struct commit *lookup_commit(const unsigned char *sha1); +struct commit *lookup_commit_reference(const unsigned char *sha1); int parse_commit_buffer(struct commit *item, void *buffer, unsigned long size); -- cgit v1.2.3