@matheusbsbs / matheus-bagliano / commits / aed6ca52e7
Fork 0

diff.c: work around pointer constness warnings

The textconv leak fix introduced two invocations of free() to release memory pointed by "const char *", which get annoying compiler warning.

Junio C Hamano committed Apr 8, 2010 at 23:30 UTC aed6ca52e73a35d0aac9aba7d631e09983e46a6f
1 file changed +2 -2
diff.c
+2 -2
@@ -551,9 +551,9 @@ static void emit_rewrite_diff(const char *name_a,
551 if (lc_b)
552 emit_rewrite_lines(&ecbdata, '+', data_two, size_two);
553 if (textconv_one)
554 - free(data_one);
554 + free((char *)data_one);
555 if (textconv_two)
556 - free(data_two);
556 + free((char *)data_two);
557 }
558
559 struct diff_words_buffer {