aboutsummaryrefslogtreecommitdiffstats
path: root/ui/gtk/packet_win.c
diff options
context:
space:
mode:
Diffstat (limited to 'ui/gtk/packet_win.c')
-rw-r--r--ui/gtk/packet_win.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/gtk/packet_win.c b/ui/gtk/packet_win.c
index 014e612eab..9ed999311d 100644
--- a/ui/gtk/packet_win.c
+++ b/ui/gtk/packet_win.c
@@ -893,7 +893,7 @@ void new_packet_window(GtkWidget *w _U_, gboolean editable _U_)
DataPtr->frame = cfile.current_frame;
DataPtr->phdr = cfile.phdr;
- DataPtr->pd = g_malloc(DataPtr->frame->cap_len);
+ DataPtr->pd = (guint8 *)g_malloc(DataPtr->frame->cap_len);
memcpy(DataPtr->pd, cfile.pd, DataPtr->frame->cap_len);
epan_dissect_init(&(DataPtr->edt), TRUE, TRUE);
@@ -988,7 +988,7 @@ void new_packet_window(GtkWidget *w _U_, gboolean editable _U_)
static void
destroy_new_window(GObject *object _U_, gpointer user_data)
{
- struct PacketWinData *DataPtr = user_data;
+ struct PacketWinData *DataPtr = (struct PacketWinData *)user_data;
detail_windows = g_list_remove(detail_windows, DataPtr);
proto_tree_draw(NULL, DataPtr->tree_view);