From 2b8ebd389bf1d706d6922940e69b89ff038bf9df Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Tue, 12 Apr 2011 00:44:44 +0000 Subject: "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 --- wiretap/snoop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wiretap/snoop.c') diff --git a/wiretap/snoop.c b/wiretap/snoop.c index 12cad44304..7822c55f4d 100644 --- a/wiretap/snoop.c +++ b/wiretap/snoop.c @@ -875,7 +875,7 @@ int snoop_dump_can_write_encap(int encap) /* Returns TRUE on success, FALSE on failure; sets "*err" to an error code on failure */ -gboolean snoop_dump_open(wtap_dumper *wdh, gboolean cant_seek _U_, int *err) +gboolean snoop_dump_open(wtap_dumper *wdh, int *err) { struct snoop_hdr file_hdr; -- cgit v1.2.3