diff options
author | Ulf Lamping <ulf.lamping@web.de> | 2005-08-10 19:49:45 +0000 |
---|---|---|
committer | Ulf Lamping <ulf.lamping@web.de> | 2005-08-10 19:49:45 +0000 |
commit | d28861b607328bbbb06c3032908ab7d62b467dea (patch) | |
tree | 36baba4cd69a9a59a0e887363013f51d2e4d9008 /gtk/proto_hier_stats_dlg.c | |
parent | 4889bace3d2560c6e1713d723711911f3a6fd84a (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_hier_stats_dlg.c')
-rw-r--r-- | gtk/proto_hier_stats_dlg.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/proto_hier_stats_dlg.c b/gtk/proto_hier_stats_dlg.c index bed0dc2570..d9e4b0cdde 100644 --- a/gtk/proto_hier_stats_dlg.c +++ b/gtk/proto_hier_stats_dlg.c @@ -74,8 +74,8 @@ fill_in_tree_node(GNode *node, gpointer data) ph_stats_t *ps = di->ps; gboolean is_leaf; draw_info_t child_di; - double seconds; - const gchar *text[NUM_STAT_COLUMNS]; + double seconds; + gchar *text[NUM_STAT_COLUMNS]; #if GTK_MAJOR_VERSION < 2 GtkCTree *tree = di->tree; GtkCTreeNode *parent = di->parent; @@ -96,7 +96,7 @@ fill_in_tree_node(GNode *node, gpointer data) seconds = ps->last_time - ps->first_time; - text[0] = stats->hfinfo->name; + text[0] = (gchar *) (stats->hfinfo->name); text[1] = g_strdup_printf("%6.2f%%", PCT(stats->num_pkts_total, ps->tot_packets)); text[2] = g_strdup_printf("%u", stats->num_pkts_total); |