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>
Florian Forster committed
Jun 18, 2006 at 17:18 UTC
04f086071e780d921f6dac83b5ffc21c3a2d7bb6
1 file changed
+2
-2
blame.c
+2
-2
@@ -301,9 +301,9 @@ static void fill_line_map(struct commit *commit, struct commit *other,
301
if (DEBUG)
302
printf("map: i1: %d %d %p i2: %d %d %p\n",
303
i1, map[i1],
304
- i1 != -1 ? blame_lines[map[i1]] : NULL,
304
+ (void *) (i1 != -1 ? blame_lines[map[i1]] : NULL),
305
i2, map2[i2],
306
- i2 != -1 ? blame_lines[map2[i2]] : NULL);
306
+ (void *) (i2 != -1 ? blame_lines[map2[i2]] : NULL));
307
if (map2[i2] != -1 &&
308
blame_lines[map[i1]] &&
309
!blame_lines[map2[i2]])