aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/expert_dlg.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/expert_dlg.c
parentd3d3f9bc6816b536661750f0f341f949350577d3 (diff)
downloadwireshark-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/expert_dlg.c')
-rw-r--r--gtk/expert_dlg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/expert_dlg.c b/gtk/expert_dlg.c
index 70f33ecbac..792bb8925a 100644
--- a/gtk/expert_dlg.c
+++ b/gtk/expert_dlg.c
@@ -516,7 +516,7 @@ expert_dlg_init(const char *optarg, void* userdata _U_)
for(i=0; expert_severity_om_vals[i].strptr != NULL;i++){
menu_item=gtk_menu_item_new_with_label(expert_severity_om_vals[i].strptr);
OBJECT_SET_DATA(menu_item, "tapdata", etd);
- SIGNAL_CONNECT(menu_item, "activate", expert_dlg_severity_cb, i);
+ SIGNAL_CONNECT(menu_item, "activate", expert_dlg_severity_cb, (long) i);
gtk_menu_append(GTK_MENU(menu), menu_item);
if(expert_severity_om_vals[i].value == (guint) etd->severity_report_level) {
gtk_menu_set_active(GTK_MENU(menu), i);