diff options
author | Guy Harris <guy@alum.mit.edu> | 2004-01-25 00:58:13 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2004-01-25 00:58:13 +0000 |
commit | 7502ac216ad7dcef048f1418eb8e34edb953ddac (patch) | |
tree | 6285e0506f94a9c4dfbf986131dd1b0f316d19bd /cfile.h | |
parent | 064d5e5e07127d79d1bb02b3c11ff4a5e2ef7939 (diff) |
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
Diffstat (limited to 'cfile.h')
-rw-r--r-- | cfile.h | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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 <gerald@ethereal.com> @@ -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; |