diff options
author | standel <standel@f5534014-38df-0310-8fa8-9805f1628bb7> | 2007-05-29 02:43:18 +0000 |
---|---|---|
committer | standel <standel@f5534014-38df-0310-8fa8-9805f1628bb7> | 2007-05-29 02:43:18 +0000 |
commit | 4b0020e5022b3e7dc04e0a0b7218eede5bb450d2 (patch) | |
tree | e9b3ac7fac6b834fccfe5f442a9c7d05d725ed54 /gtk/tcp_graph.c | |
parent | 842557f8dd1fceb51cf9ef24314f0746bd4f9ad5 (diff) |
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'.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21975 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'gtk/tcp_graph.c')
-rw-r--r-- | gtk/tcp_graph.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gtk/tcp_graph.c b/gtk/tcp_graph.c index 0d231e75c7..a7d7908f4e 100644 --- a/gtk/tcp_graph.c +++ b/gtk/tcp_graph.c @@ -1162,7 +1162,7 @@ static void callback_zoom_step (GtkWidget *spin, gpointer data) GtkSpinButton *widget_this, *widget_other; double old_this; - direction = (int)OBJECT_GET_DATA(spin, "direction"); + direction = (long)OBJECT_GET_DATA(spin, "direction"); value = gtk_spin_button_get_value_as_float (GTK_SPIN_BUTTON (spin)); if (direction) { @@ -1201,7 +1201,7 @@ static void callback_zoom_step (GtkWidget *spin, gpointer data) static void callback_zoom_flags (GtkWidget *toggle, gpointer data) { struct graph *g = (struct graph * )data; - int flag = (int)OBJECT_GET_DATA(toggle, "flag"); + int flag = (long)OBJECT_GET_DATA(toggle, "flag"); if (GTK_TOGGLE_BUTTON (toggle)->active) g->zoom.flags |= flag; @@ -1363,7 +1363,7 @@ static void callback_mag_zoom (GtkWidget *spin, gpointer data) g->magnify.flags &= ~MAGZOOMS_IGNORE; return; } - direction = (int)OBJECT_GET_DATA(spin, "direction"); + direction = (long)OBJECT_GET_DATA(spin, "direction"); value = gtk_spin_button_get_value_as_float (GTK_SPIN_BUTTON (spin)); if (direction) { @@ -1406,7 +1406,7 @@ static void callback_mag_zoom (GtkWidget *spin, gpointer data) static void callback_mag_flags (GtkWidget *toggle, gpointer data) { struct graph *g = (struct graph * )data; - int flag = (int)OBJECT_GET_DATA(toggle, "flag"); + int flag = (long)OBJECT_GET_DATA(toggle, "flag"); if (GTK_TOGGLE_BUTTON (toggle)->active) g->magnify.flags |= flag; @@ -1566,7 +1566,7 @@ static void callback_graph_type (GtkWidget *toggle, gpointer data) int old_type, new_type; struct graph *g = (struct graph * )data; - new_type = (int)OBJECT_GET_DATA(toggle,"new-graph-type"); + new_type = (long)OBJECT_GET_DATA(toggle,"new-graph-type"); if (!GTK_TOGGLE_BUTTON (toggle)->active) return; |