summaryrefslogtreecommitdiff
path: root/cache-tree.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2007-06-23 06:19:43 (GMT)
committerJunio C Hamano <gitster@pobox.com>2007-06-23 06:19:43 (GMT)
commit63daae47e59b72ebec3595ca3e9917e6c595c814 (patch)
tree9db85db2ee8e1ec15477df20814adf07be5d4af2 /cache-tree.c
parent0ce396431ee710aa406f7e41ad9578dcac54085f (diff)
downloadgit-63daae47e59b72ebec3595ca3e9917e6c595c814.zip
git-63daae47e59b72ebec3595ca3e9917e6c595c814.tar.gz
git-63daae47e59b72ebec3595ca3e9917e6c595c814.tar.bz2
Two trivial -Wcast-qual fixes
Luiz Fernando N. Capitulino noticed the one in tree-walk.h where we cast away constness while computing the legnth of a tree entry. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'cache-tree.c')
-rw-r--r--cache-tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cache-tree.c b/cache-tree.c
index 350a79b..077f034 100644
--- a/cache-tree.c
+++ b/cache-tree.c
@@ -478,7 +478,7 @@ static struct cache_tree *read_one(const char **buffer, unsigned long *size_p)
if (0 <= it->entry_count) {
if (size < 20)
goto free_return;
- hashcpy(it->sha1, (unsigned char*)buf);
+ hashcpy(it->sha1, (const unsigned char*)buf);
buf += 20;
size -= 20;
}