diff options
author | Anders Broman <anders.broman@ericsson.com> | 2013-03-09 10:09:58 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2013-03-09 10:09:58 +0000 |
commit | 97c4bc6292114eb68b788c88dc42eb3c16858fa5 (patch) | |
tree | 0097fc65d211603a78a3eed4300a3bd72fb38685 /ui/gtk/drag_and_drop.c | |
parent | f6019d9d889095040d50c175ebc5a01813b892f9 (diff) | |
download | wireshark-97c4bc6292114eb68b788c88dc42eb3c16858fa5.tar.gz |
Use explicit casts.
svn path=/trunk/; revision=48212
Diffstat (limited to 'ui/gtk/drag_and_drop.c')
-rw-r--r-- | ui/gtk/drag_and_drop.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/gtk/drag_and_drop.c b/ui/gtk/drag_and_drop.c index 3112a3d65e..dac52e2868 100644 --- a/ui/gtk/drag_and_drop.c +++ b/ui/gtk/drag_and_drop.c @@ -231,7 +231,7 @@ dnd_open_file_cmd(gchar *cf_names_freeme) return; } - in_filenames = g_malloc(sizeof(char*) * in_files); + in_filenames = (char **)g_malloc(sizeof(char*) * in_files); /* store the starts of the file entries in a gchar array */ cf_name = cf_names_freeme; @@ -324,7 +324,7 @@ dnd_data_received(GtkWidget *widget _U_, GdkDragContext *dc _U_, gint x _U_, gin /* the data string is not zero terminated -> make a zero terminated "copy" of it */ sel_data_len = gtk_selection_data_get_length(selection_data); sel_data_data = gtk_selection_data_get_data(selection_data); - cf_names_freeme = g_malloc(sel_data_len + 1); + cf_names_freeme = (gchar *)g_malloc(sel_data_len + 1); memcpy(cf_names_freeme, sel_data_data, sel_data_len); cf_names_freeme[sel_data_len] = '\0'; |