diff options
author | Guy Harris <guy@alum.mit.edu> | 2011-04-12 00:44:44 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2011-04-12 00:44:44 +0000 |
commit | 2b8ebd389bf1d706d6922940e69b89ff038bf9df (patch) | |
tree | 598ee6dae4cbe95a2d65910302f56df5c2dbf832 /wiretap/network_instruments.c | |
parent | 793d683575966d990ce2e819bac5e1c214c6a9fa (diff) |
"This file format can't be written to a pipe" and "this file format
can't be saved in compress form" are both equivalent to "this file file
format requires seeking when writing it". Change the "can compress"
Boolean in the file format table to "writing requires seeking", give all
the entries the proper value, and do the checks for attempting to write
a file format to a pipe or write it in compressed format to common code.
This means we don't need to pass the "can't seek" flag to the dump open
routines.
svn path=/trunk/; revision=36575
Diffstat (limited to 'wiretap/network_instruments.c')
-rw-r--r-- | wiretap/network_instruments.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/wiretap/network_instruments.c b/wiretap/network_instruments.c index fb98533183..b11a526f59 100644 --- a/wiretap/network_instruments.c +++ b/wiretap/network_instruments.c @@ -491,7 +491,7 @@ int network_instruments_dump_can_write_encap(int encap) /* Returns TRUE on success, FALSE on failure; sets "*err" to an error code on failure. */ -gboolean network_instruments_dump_open(wtap_dumper *wdh, gboolean cant_seek, int *err) +gboolean network_instruments_dump_open(wtap_dumper *wdh, int *err) { capture_file_header file_header; tlv_header comment_header; @@ -500,11 +500,6 @@ gboolean network_instruments_dump_open(wtap_dumper *wdh, gboolean cant_seek, int time_t system_time; niobserver_dump_t *niobserver; - if (cant_seek) { - *err = WTAP_ERR_CANT_WRITE_TO_PIPE; - return FALSE; - } - wdh->subtype_write = observer_dump; niobserver = (niobserver_dump_t *)g_malloc(sizeof(niobserver_dump_t)); |