aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/scsi_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/scsi_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/scsi_stat.c')
-rw-r--r--gtk/scsi_stat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/scsi_stat.c b/gtk/scsi_stat.c
index 8b33907163..f9d6ba137a 100644
--- a/gtk/scsi_stat.c
+++ b/gtk/scsi_stat.c
@@ -111,7 +111,7 @@ dlg_destroy_cb(void)
static void
scsistat_program_select(GtkWidget *item _U_, gpointer key)
{
- int k=(int)key;
+ int k=(long)key;
scsi_program=k;
}