diff options
author | Guy Harris <guy@alum.mit.edu> | 2016-12-03 14:17:08 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2016-12-03 22:17:41 +0000 |
commit | 3309c08cd03a16438e6189bf4547ca172f90330a (patch) | |
tree | 9223705a61ea3b6adcbe3c931e3a7a0af4d17a54 /wiretap/file_wrappers.h | |
parent | a0d03ce1e70144fe713df9e03b30bc8126d764a5 (diff) |
When opening the standard output for writing, dup it.
That way, we can close the resulting wtap_dumper the same way we close
any other wtap_dumper, including closing the FD, rather than trying to
do everything *except* closing the FD (which is tricky for a FILE *).
Change-Id: I8cb66e32784d73e598b2e8720a12f9bdab1c6205
Reviewed-on: https://code.wireshark.org/review/19054
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'wiretap/file_wrappers.h')
-rw-r--r-- | wiretap/file_wrappers.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wiretap/file_wrappers.h b/wiretap/file_wrappers.h index d53b47c09e..a7aca97643 100644 --- a/wiretap/file_wrappers.h +++ b/wiretap/file_wrappers.h @@ -52,7 +52,7 @@ extern GZWFILE_T gzwfile_open(const char *path); extern GZWFILE_T gzwfile_fdopen(int fd); extern guint gzwfile_write(GZWFILE_T state, const void *buf, guint len); extern int gzwfile_flush(GZWFILE_T state); -extern int gzwfile_close(GZWFILE_T state, gboolean is_stdout); +extern int gzwfile_close(GZWFILE_T state); extern int gzwfile_geterr(GZWFILE_T state); #endif /* HAVE_ZLIB */ |