From 1d7f171c3a456b980d821ee0f68e01535a5f7e36 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Sun, 18 Jun 2006 17:18:09 +0200 Subject: Remove all void-pointer arithmetic. ANSI C99 doesn't allow void-pointer arithmetic. This patch fixes this in various ways. Usually the strategy that required the least changes was used. Signed-off-by: Florian Forster Signed-off-by: Junio C Hamano --- diffcore-order.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'diffcore-order.c') diff --git a/diffcore-order.c b/diffcore-order.c index 0bc2b22f84..aef6da6044 100644 --- a/diffcore-order.c +++ b/diffcore-order.c @@ -30,7 +30,7 @@ static void prepare_order(const char *orderfile) close(fd); if (map == MAP_FAILED) return; - endp = map + st.st_size; + endp = (char *) map + st.st_size; for (pass = 0; pass < 2; pass++) { cnt = 0; cp = map; -- cgit v1.2.3