1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-05-20 22:46:27 +02:00

Cast pointers to `void *' when used in a format.

ANSI C99 requires void-pointers when using the `%p' format. This patch adds the
neccessary cast in `blame.c'.

Signed-off-by: Florian Forster <octo@verplant.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
Florian Forster 2006-06-18 17:18:06 +02:00 committed by Junio C Hamano
parent b4b1550315
commit 04f086071e

View File

@ -301,9 +301,9 @@ static void fill_line_map(struct commit *commit, struct commit *other,
if (DEBUG)
printf("map: i1: %d %d %p i2: %d %d %p\n",
i1, map[i1],
i1 != -1 ? blame_lines[map[i1]] : NULL,
(void *) (i1 != -1 ? blame_lines[map[i1]] : NULL),
i2, map2[i2],
i2 != -1 ? blame_lines[map2[i2]] : NULL);
(void *) (i2 != -1 ? blame_lines[map2[i2]] : NULL));
if (map2[i2] != -1 &&
blame_lines[map[i1]] &&
!blame_lines[map2[i2]])