aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2003-11-18 06:06:41 +0000
committerUlf Lamping <ulf.lamping@web.de>2003-11-18 06:06:41 +0000
commit4d0f00fe32182f662d70538ac469eaca4c1fdd43 (patch)
treeffe2a35c726f2a8c8e138f2687bffb72443a4bf1
parent6ae720789b0839a19fa1f6307572d72c929031e1 (diff)
removed MSVC warnings
svn path=/trunk/; revision=8996
-rw-r--r--gtk/capture_info_dlg.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gtk/capture_info_dlg.c b/gtk/capture_info_dlg.c
index 574996ead3..4162b52d37 100644
--- a/gtk/capture_info_dlg.c
+++ b/gtk/capture_info_dlg.c
@@ -1,7 +1,7 @@
/* capture_info_dlg.c
* Routines for packet capture info dialog
*
- * $Id: capture_info_dlg.c,v 1.3 2003/11/17 20:00:37 guy Exp $
+ * $Id: capture_info_dlg.c,v 1.4 2003/11/18 06:06:41 ulfl Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -63,7 +63,7 @@ typedef struct {
static float
pct(gint num, gint denom) {
if (denom) {
- return (float) num * 100.0 / (float) denom;
+ return (float) (num * 100.0 / denom);
} else {
return 0.0;
}
@@ -90,7 +90,6 @@ capture_info *cinfo)
unsigned int i;
GtkWidget *main_vb, *stop_bt, *counts_tb;
GtkWidget *counts_fr, *running_tb, *running_label;
- GtkWidget *iface_lb, *iface_name_lb, *iface_descr_lb;
capture_info_ui_t *info;
info = g_malloc0(sizeof(capture_info_ui_t));