summaryrefslogtreecommitdiff
path: root/http-fetch.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 /http-fetch.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 'http-fetch.c')
-rw-r--r--http-fetch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/http-fetch.c b/http-fetch.c
index 3a2cb5e..2b63d89 100644
--- a/http-fetch.c
+++ b/http-fetch.c
@@ -123,7 +123,7 @@ static size_t fwrite_sha1_file(void *ptr, size_t eltsize, size_t nmemb,
struct object_request *obj_req = (struct object_request *)data;
do {
ssize_t retval = write(obj_req->local,
- ptr + posn, size - posn);
+ (char *) ptr + posn, size - posn);
if (retval < 0)
return posn;
posn += retval;