From d28861b607328bbbb06c3032908ab7d62b467dea Mon Sep 17 00:00:00 2001 From: Ulf Lamping Date: Wed, 10 Aug 2005 19:49:45 +0000 Subject: removed tons of MSVC const related warnings. This might at some places interfere with the changes for gcc4, we might have to negotiate in that case :-) Please note that a lot of these warnings were GTK1.x related only! svn path=/trunk/; revision=15286 --- gtk/proto_draw.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gtk/proto_draw.c') diff --git a/gtk/proto_draw.c b/gtk/proto_draw.c index 4fb4c8b560..59f8fe8194 100644 --- a/gtk/proto_draw.c +++ b/gtk/proto_draw.c @@ -1378,7 +1378,7 @@ packet_hex_print_common(GtkTextView *bv, const guint8 *pd, int len, int bstart, convline = g_locale_to_utf8(line, cur, NULL, &newsize, NULL); gtk_text_buffer_insert_with_tags_by_name(buf, &iter, convline, newsize, revstyle, NULL); - g_free(convline); + g_free( (gpointer) convline); cur = 0; } if (i < k) { @@ -1392,7 +1392,7 @@ packet_hex_print_common(GtkTextView *bv, const guint8 *pd, int len, int bstart, convline = g_locale_to_utf8(line, cur, NULL, &newsize, NULL); gtk_text_buffer_insert_with_tags_by_name(buf, &iter, convline, newsize, "plain", NULL); - g_free(convline); + g_free( (gpointer) convline); cur = 0; } reverse = newreverse; @@ -1402,7 +1402,7 @@ packet_hex_print_common(GtkTextView *bv, const guint8 *pd, int len, int bstart, gtk_text_buffer_insert_with_tags_by_name(buf, &iter, convline, newsize, reverse ? revstyle : "plain", NULL); - g_free(convline); + g_free( (gpointer) convline); cur = 0; line[cur++] = '\n'; gtk_text_buffer_insert_with_tags_by_name(buf, &iter, line, cur, -- cgit v1.2.3