From 606d363a9b76a9d9b86c9e3c3fc02ba8f813919a Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Sat, 25 Aug 2001 03:18:48 +0000 Subject: 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 --- wiretap/wtap-int.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'wiretap/wtap-int.h') 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 @@ -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 { -- cgit v1.2.1