fast-import: make code "-Wpointer-arith" clean
commit6288e3e180c0b911e6f7062f1e744a25568f7d22
authorJonathan Nieder <jrnieder@gmail.com>
Mon, 28 Feb 2011 21:16:59 +0000 (28 15:16 -0600)
committerJonathan Nieder <jrnieder@gmail.com>
Mon, 28 Feb 2011 21:25:12 +0000 (28 15:25 -0600)
tree5d1cb4f74f1a5943433c3a3fa0fb43fad45952ea
parenta62bbf8f01c6b19cd1a5cf92a98f612176aa2b67
fast-import: make code "-Wpointer-arith" clean

The dereference() function to peel a tree-ish and find the underlying
tree expects arithmetic to (void *) to work on byte addresses.  We
should be reading the text of objects through a char * anyway.

Noticed-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
fast-import.c