aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/io_stat.c
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2002-12-05 22:19:24 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2002-12-05 22:19:24 +0000
commit834c08904b7a29672bedf605d5dabfe90fc2abf4 (patch)
tree4899629c7fd33a9527ae29d5b7a90e75327464be /gtk/io_stat.c
parent6488851a0b9004fb94d4ae6060035834487edf66 (diff)
downloadwireshark-834c08904b7a29672bedf605d5dabfe90fc2abf4.tar.gz
wireshark-834c08904b7a29672bedf605d5dabfe90fc2abf4.tar.bz2
wireshark-834c08904b7a29672bedf605d5dabfe90fc2abf4.zip
Fix two compiler warnings
svn path=/trunk/; revision=6748
Diffstat (limited to 'gtk/io_stat.c')
-rw-r--r--gtk/io_stat.c16
1 files changed, 3 insertions, 13 deletions
diff --git a/gtk/io_stat.c b/gtk/io_stat.c
index 5b7bf95c46..853d1ca851 100644
--- a/gtk/io_stat.c
+++ b/gtk/io_stat.c
@@ -1,17 +1,7 @@
-/* BUG:
- since file.c does not provide other times than absolute time
- when we get called we have to do the base_time kludge.
- This makes the time displayed wrong if we filter since we
- will not see the first packet of the capture but have to base the base_time
- on the timestamp of the first packet we see.
-
- file.c should be updated to calculate abs time and delta before the first
- dissection occurs
-*/
/* io_stat.c
* io_stat 2002 Ronnie Sahlberg
*
- * $Id: io_stat.c,v 1.9 2002/12/02 19:44:09 guy Exp $
+ * $Id: io_stat.c,v 1.10 2002/12/05 22:19:24 sahlberg Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -516,7 +506,7 @@ gtk_iostat_draw(void *g)
if(io->max_y_units==AUTO_MAX_YSCALE){
guint32 max_value=0;
for(i=0;i<MAX_GRAPHS;i++){
- int adv_type;
+ int adv_type=0;
if( (!io->graphs[i].display) || (!io->graphs[i].counts) ){
continue;
@@ -691,7 +681,7 @@ gtk_iostat_draw(void *g)
/* loop over all items */
for(i=MAX_GRAPHS-1;i>=0;i--){
- int adv_type;
+ int adv_type=0;
if( (!io->graphs[i].display) || (!io->graphs[i].counts) ){
continue;