diff options
Diffstat (limited to 'ui/cli')
-rw-r--r-- | ui/cli/tap-icmpstat.c | 4 | ||||
-rw-r--r-- | ui/cli/tap-icmpv6stat.c | 4 | ||||
-rw-r--r-- | ui/cli/tap-iostat.c | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/ui/cli/tap-icmpstat.c b/ui/cli/tap-icmpstat.c index 213e149ae8..a9cfcb35e7 100644 --- a/ui/cli/tap-icmpstat.c +++ b/ui/cli/tap-icmpstat.c @@ -82,8 +82,8 @@ static gint compare_doubles(gconstpointer a, gconstpointer b) { double ad, bd; - ad = *(double *)a; - bd = *(double *)b; + ad = *(const double *)a; + bd = *(const double *)b; if (ad < bd) return -1; diff --git a/ui/cli/tap-icmpv6stat.c b/ui/cli/tap-icmpv6stat.c index fb486c0ee2..89da415425 100644 --- a/ui/cli/tap-icmpv6stat.c +++ b/ui/cli/tap-icmpv6stat.c @@ -83,8 +83,8 @@ static gint compare_doubles(gconstpointer a, gconstpointer b) { double ad, bd; - ad = *(double *)a; - bd = *(double *)b; + ad = *(const double *)a; + bd = *(const double *)b; if (ad < bd) return -1; diff --git a/ui/cli/tap-iostat.c b/ui/cli/tap-iostat.c index ac826c3543..e5de1f82ad 100644 --- a/ui/cli/tap-iostat.c +++ b/ui/cli/tap-iostat.c @@ -847,7 +847,7 @@ iostat_draw(void *arg) do { if (len_filt > max_w) { - sfilter1 = g_strndup( (gchar *) filter, (gsize) max_w); + sfilter1 = g_strndup(filter, (gsize) max_w); /* * Find the pos of the last space in sfilter1. If a space is found, set * sfilter2 to the string prior to that space and print it; otherwise, wrap @@ -1478,7 +1478,7 @@ iostat_init(const char *opt_arg, void* userdata _U_) register_io_tap(io, i, NULL); } else if (pos==NULL) { str = (const char*) g_strstrip((gchar*)str); - filter = g_strdup((gchar*) str); + filter = g_strdup(str); if (*filter) register_io_tap(io, i, filter); else |