aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/dcerpc_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/dcerpc_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/dcerpc_stat.c')
-rw-r--r--gtk/dcerpc_stat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/dcerpc_stat.c b/gtk/dcerpc_stat.c
index f4aa3c6ddb..485ee5a411 100644
--- a/gtk/dcerpc_stat.c
+++ b/gtk/dcerpc_stat.c
@@ -379,7 +379,7 @@ dcerpcstat_start_button_clicked(GtkWidget *item _U_, gpointer data _U_)
static void
dcerpcstat_version_select(GtkWidget *item _U_, gpointer key)
{
- int vers=(int)key;
+ int vers=(long)key;
dcerpc_version=vers;
}
@@ -401,7 +401,7 @@ dcerpcstat_find_vers(gpointer *key, gpointer *value _U_, gpointer *user_data _U_
g_snprintf(vs, 5, "%u",k->ver);
menu_item=gtk_menu_item_new_with_label(vs);
SIGNAL_CONNECT(menu_item, "activate", dcerpcstat_version_select,
- ((int)k->ver));
+ ((long)k->ver));
gtk_widget_show(menu_item);
gtk_menu_append(GTK_MENU(vers_menu), menu_item);