From 7502ac216ad7dcef048f1418eb8e34edb953ddac Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Sun, 25 Jan 2004 00:58:13 +0000 Subject: There's no need to keep a "FILE *" for the file being printed to in a "capture_file" structure. Keep it locally, instead. Check for errors when printing packets. Report failure to open a print destination and failure to write to a print destination differently. Don't have the "print preamble" and "print final" routines return success/failure indications - revert to the old scheme where they didn't, and have the callers use "ferror()" to check for errors. Report write errors when printing dissections in Tethereal. Report print errors as errors, not warnings. svn path=/trunk/; revision=9828 --- cfile.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'cfile.h') diff --git a/cfile.h b/cfile.h index 2d0cac446c..816f672eef 100644 --- a/cfile.h +++ b/cfile.h @@ -1,7 +1,7 @@ /* cfile.h * capture_file definition & GUI-independent manipulation * - * $Id: cfile.h,v 1.7 2004/01/09 21:38:21 guy Exp $ + * $Id: cfile.h,v 1.8 2004/01/25 00:58:11 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -88,7 +88,6 @@ typedef struct _capture_file { frame_data *current_frame; /* Frame data for current frame */ epan_dissect_t *edt; /* Protocol dissection for currently selected packet */ field_info *finfo_selected; /* Field info for currently selected field */ - FILE *print_fh; /* File we're printing to */ struct ph_stats_s* pstats; /* accumulated stats (reset on redisplay in GUI)*/ } capture_file; -- cgit v1.2.3