aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/rpc_stat.c
diff options
context:
space:
mode:
authorSebastien Tandel <sebastien@tandel.be>2007-05-29 02:43:18 +0000
committerSebastien Tandel <sebastien@tandel.be>2007-05-29 02:43:18 +0000
commit76729e5d0fdd675b3c070a33ab5bad7e0f8209da (patch)
treee9b3ac7fac6b834fccfe5f442a9c7d05d725ed54 /gtk/rpc_stat.c
parentd3d3f9bc6816b536661750f0f341f949350577d3 (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'. svn path=/trunk/; revision=21975
Diffstat (limited to 'gtk/rpc_stat.c')
-rw-r--r--gtk/rpc_stat.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/rpc_stat.c b/gtk/rpc_stat.c
index b3701a5445..1db5e726d5 100644
--- a/gtk/rpc_stat.c
+++ b/gtk/rpc_stat.c
@@ -341,7 +341,7 @@ rpcstat_start_button_clicked(GtkWidget *item _U_, gpointer data _U_)
static void
rpcstat_version_select(GtkWidget *item _U_, gpointer key)
{
- int vers=(int)key;
+ int vers=(long)key;
rpc_version=vers;
}
@@ -370,7 +370,7 @@ rpcstat_program_select(GtkWidget *item _U_, gpointer key)
g_snprintf(vs, 5, "%d",i);
menu_item=gtk_menu_item_new_with_label(vs);
SIGNAL_CONNECT(menu_item, "activate", rpcstat_version_select,
- i);
+ (long) i);
gtk_widget_show(menu_item);
gtk_menu_append(GTK_MENU(vers_menu), menu_item);
@@ -471,7 +471,7 @@ gtk_rpcstat_cb(GtkWidget *w _U_, gpointer d _U_)
g_snprintf(vs, 5, "%d",i);
menu_item=gtk_menu_item_new_with_label(vs);
SIGNAL_CONNECT(menu_item, "activate", rpcstat_version_select,
- i);
+ (long) i);
gtk_widget_show(menu_item);
gtk_menu_append(GTK_MENU(vers_menu), menu_item);