aboutsummaryrefslogtreecommitdiffstats
path: root/epan/stats_tree.c
diff options
context:
space:
mode:
authorDario Lombardo <lomato@gmail.com>2019-01-03 17:53:42 +0100
committerGuy Harris <guy@alum.mit.edu>2019-01-03 23:39:43 +0000
commitb67b47558d1bfff404e483156a98ac3c50433609 (patch)
tree7acdae1f163e854b08c37c9d8144b6dcc7a46725 /epan/stats_tree.c
parent58b71c754cdf829f0a33bad94d2fcde6e12c0342 (diff)
epan: remove redundant casts.
Found by clang-tidy. Change-Id: Iaf6cf84c33b03ddfcd39a333b49f4987002afa56 Reviewed-on: https://code.wireshark.org/review/31338 Petri-Dish: Dario Lombardo <lomato@gmail.com> Petri-Dish: Guy Harris <guy@alum.mit.edu> Tested-by: Petri Dish Buildbot Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/stats_tree.c')
-rw-r--r--epan/stats_tree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/stats_tree.c b/epan/stats_tree.c
index ad0b7eb040..55e317f898 100644
--- a/epan/stats_tree.c
+++ b/epan/stats_tree.c
@@ -484,7 +484,7 @@ new_stat_node(stats_tree *st, const gchar *name, int parent_id, stat_node_dataty
node->burst_time = -1.0;
node->name = g_strdup(name);
- node->st = (stats_tree*) st;
+ node->st = st;
node->hash = with_hash ? g_hash_table_new(g_str_hash,g_str_equal) : NULL;
if (as_parent_node) {
@@ -1170,7 +1170,7 @@ stats_tree_get_values_from_node (const stat_node* node)
g_strdup_printf("%.4f",((double)node->max_burst)/prefs.st_burst_windowlen)):
g_strdup("-"));
values[COL_BURSTTIME] = (!prefs.st_enable_burstinfo)?g_strdup(""):
- (node->max_burst?g_strdup_printf("%.3f",((double)node->burst_time/1000.0)):g_strdup("-"));
+ (node->max_burst?g_strdup_printf("%.3f",(node->burst_time/1000.0)):g_strdup("-"));
}
return values;
}