aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/proto_draw.c
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2005-08-10 19:49:45 +0000
committerUlf Lamping <ulf.lamping@web.de>2005-08-10 19:49:45 +0000
commitd28861b607328bbbb06c3032908ab7d62b467dea (patch)
tree36baba4cd69a9a59a0e887363013f51d2e4d9008 /gtk/proto_draw.c
parent4889bace3d2560c6e1713d723711911f3a6fd84a (diff)
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
Diffstat (limited to 'gtk/proto_draw.c')
-rw-r--r--gtk/proto_draw.c6
1 files changed, 3 insertions, 3 deletions
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,