aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/wtap-int.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2001-08-25 03:18:48 +0000
committerGuy Harris <guy@alum.mit.edu>2001-08-25 03:18:48 +0000
commit606d363a9b76a9d9b86c9e3c3fc02ba8f813919a (patch)
tree9ca4eed5d5acdec6fb7ef0d977332ffde57d710c /wiretap/wtap-int.h
parent837e848329ac0b9ce00438a914d13f9910cc90f3 (diff)
The return value from "fwrite()" is a "size_t"; make the variable into
which we store it a "size_t", and then fix up the bugs that were revealed by the compiler warnings that produced - "fwrite()" returns 0, not a negative number, on an I/O error. Fix up some other items to have type "size_t", or to have various unsigned types, while we're at it, to squelch compiler warnings. svn path=/trunk/; revision=3867
Diffstat (limited to 'wiretap/wtap-int.h')
-rw-r--r--wiretap/wtap-int.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/wiretap/wtap-int.h b/wiretap/wtap-int.h
index 7f97d97685..f6b64d0346 100644
--- a/wiretap/wtap-int.h
+++ b/wiretap/wtap-int.h
@@ -1,6 +1,6 @@
/* wtap-int.h
*
- * $Id: wtap-int.h,v 1.12 2001/02/13 07:07:17 guy Exp $
+ * $Id: wtap-int.h,v 1.13 2001/08/25 03:18:48 guy Exp $
*
* Wiretap Library
* Copyright (c) 1998 by Gilbert Ramirez <gram@xiexie.org>
@@ -93,8 +93,8 @@ typedef struct {
guint32 start_usecs;
guint8 version_major;
guint32 *frame_table;
- int frame_table_size;
- int current_frame;
+ guint32 frame_table_size;
+ guint current_frame;
} netmon_t;
typedef struct {
@@ -177,8 +177,8 @@ typedef struct {
struct timeval first_record_time;
guint32 frame_table_offset;
guint32 *frame_table;
- int frame_table_index;
- int frame_table_size;
+ guint frame_table_index;
+ guint frame_table_size;
} netmon_dump_t;
struct wtap_dumper {