Skip to content

Commit

Permalink
Cast pointers to `void *' when used in a format.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Florian Forster authored and Junio C Hamano committed Jun 19, 2006
1 parent b4b1550 commit 04f0860
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions blame.c
Original file line number Diff line number Diff line change
Expand Up @@ -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]])
Expand Down

0 comments on commit 04f0860

Please sign in to comment.