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/rpc_stat.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/rpc_stat.c')
-rw-r--r-- | gtk/rpc_stat.c | 6 |
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); |