diff options
author | Sebastien Tandel <sebastien@tandel.be> | 2007-05-29 02:43:18 +0000 |
---|---|---|
committer | Sebastien Tandel <sebastien@tandel.be> | 2007-05-29 02:43:18 +0000 |
commit | 76729e5d0fdd675b3c070a33ab5bad7e0f8209da (patch) | |
tree | e9b3ac7fac6b834fccfe5f442a9c7d05d725ed54 /gtk/io_stat.c | |
parent | d3d3f9bc6816b536661750f0f341f949350577d3 (diff) | |
download | wireshark-76729e5d0fdd675b3c070a33ab5bad7e0f8209da.tar.gz wireshark-76729e5d0fdd675b3c070a33ab5bad7e0f8209da.tar.bz2 wireshark-76729e5d0fdd675b3c070a33ab5bad7e0f8209da.zip |
From David Howells :
Fix compilation failures when building wireshark-0.99.6-SVN-21916 on an
x86_64-unknown-linux-gnu target with gcc version 4.1.2 20070403 (Red Hat
4.1.2-8).
The failures fall into two categories:
(1) Casts between pointers and 32-bit integers without an intermediary cast
via 'long' or 'unsigned long'. This results in a compiler warning complaining
about casts between a pointer and an integer of a different size.
(2) Passing values to "%lld" or similar printf-style format options that the
compiler thinks are a different size. Such values need to be cast to 'long
long' or 'unsigned long long'.
svn path=/trunk/; revision=21975
Diffstat (limited to 'gtk/io_stat.c')
-rw-r--r-- | gtk/io_stat.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gtk/io_stat.c b/gtk/io_stat.c index 218d19b8d9..f660bb0230 100644 --- a/gtk/io_stat.c +++ b/gtk/io_stat.c @@ -1264,7 +1264,7 @@ tick_interval_select(GtkWidget *item, gpointer key) io_stat_t *io; io=(io_stat_t *)key; - val=(int)OBJECT_GET_DATA(item, "tick_interval"); + val=(long)OBJECT_GET_DATA(item, "tick_interval"); io->interval=val; cf_retap_packets(&cfile, FALSE); @@ -1278,7 +1278,7 @@ pixels_per_tick_select(GtkWidget *item, gpointer key) io_stat_t *io; io=(io_stat_t *)key; - val=(int)OBJECT_GET_DATA(item, "pixels_per_tick"); + val=(long)OBJECT_GET_DATA(item, "pixels_per_tick"); io->pixels_per_tick=val; io_stat_redraw(io); } @@ -1290,7 +1290,7 @@ plot_style_select(GtkWidget *item, gpointer key) io_stat_graph_t *ppt; ppt=(io_stat_graph_t *)key; - val=(int)OBJECT_GET_DATA(item, "plot_style"); + val=(long)OBJECT_GET_DATA(item, "plot_style"); ppt->plot_style=val; @@ -1326,7 +1326,7 @@ yscale_select(GtkWidget *item, gpointer key) io_stat_t *io; io=(io_stat_t *)key; - val=(int)OBJECT_GET_DATA(item, "yscale_max"); + val=(long)OBJECT_GET_DATA(item, "yscale_max"); io->max_y_units=val; io_stat_redraw(io); @@ -1391,7 +1391,7 @@ count_type_select(GtkWidget *item, gpointer key) io_stat_t *io; io=(io_stat_t *)key; - val=(int)OBJECT_GET_DATA(item, "count_type"); + val=(long)OBJECT_GET_DATA(item, "count_type"); io->count_type=val; |