summaryrefslogtreecommitdiff
path: root/tag.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-06-21 10:51:59 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-06-21 10:51:59 (GMT)
commit9d24ed4f019e035eeb8125c2c595876ad1211a3a (patch)
treec9841029a92f8f5d509eacdc88f7e6364b40ec2c /tag.c
parent3bec0da08d6df03a103ddc4237cf2c79992c7dd4 (diff)
parent1d7f171c3a456b980d821ee0f68e01535a5f7e36 (diff)
downloadgit-9d24ed4f019e035eeb8125c2c595876ad1211a3a.zip
git-9d24ed4f019e035eeb8125c2c595876ad1211a3a.tar.gz
git-9d24ed4f019e035eeb8125c2c595876ad1211a3a.tar.bz2
Merge branch 'ff/c99' into next
* ff/c99: Remove all void-pointer arithmetic.
Diffstat (limited to 'tag.c')
-rw-r--r--tag.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tag.c b/tag.c
index 5f70a5b..74d0dab 100644
--- a/tag.c
+++ b/tag.c
@@ -47,10 +47,10 @@ int parse_tag_buffer(struct tag *item, void *data, unsigned long size)
if (size < 64)
return -1;
- if (memcmp("object ", data, 7) || get_sha1_hex(data + 7, object))
+ if (memcmp("object ", data, 7) || get_sha1_hex((char *) data + 7, object))
return -1;
- type_line = data + 48;
+ type_line = (char *) data + 48;
if (memcmp("\ntype ", type_line-1, 6))
return -1;