summaryrefslogtreecommitdiff
path: root/ui/cli
diff options
context:
space:
mode:
authorJakub Zawadzki <darkjames-ws@darkjames.pl>2013-12-14 10:29:26 +0000
committerJakub Zawadzki <darkjames-ws@darkjames.pl>2013-12-14 10:29:26 +0000
commit5c79cbf152ac1ee36007060937fb94b5d3b39014 (patch)
tree117a6ce9b75f80a282ba47224985ae9f6b65e4ea /ui/cli
parent5dd7b7388b02f406c0b35e48f938ba8c64a45c18 (diff)
downloadwireshark-5c79cbf152ac1ee36007060937fb94b5d3b39014.tar.gz
Fix some trivial warnings.
svn path=/trunk/; revision=54085
Diffstat (limited to 'ui/cli')
-rw-r--r--ui/cli/tap-icmpstat.c4
-rw-r--r--ui/cli/tap-icmpv6stat.c4
-rw-r--r--ui/cli/tap-iostat.c4
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