aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/btsnoop.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2011-04-12 00:44:44 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2011-04-12 00:44:44 +0000
commita4f1aa318b959e195cafd9f488f022fcaa77ab1c (patch)
tree598ee6dae4cbe95a2d65910302f56df5c2dbf832 /wiretap/btsnoop.c
parentfa3ea49400f237f6bd3196f2e5ffb0535616beb8 (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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@36575 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'wiretap/btsnoop.c')
-rw-r--r--wiretap/btsnoop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/wiretap/btsnoop.c b/wiretap/btsnoop.c
index fd266f16b4..bd965f5a29 100644
--- a/wiretap/btsnoop.c
+++ b/wiretap/btsnoop.c
@@ -431,7 +431,7 @@ static gboolean btsnoop_dump_h4(wtap_dumper *wdh,
}
/* FIXME: How do we support multiple backends?*/
-gboolean btsnoop_dump_open_h1(wtap_dumper *wdh, gboolean cant_seek _U_, int *err)
+gboolean btsnoop_dump_open_h1(wtap_dumper *wdh, int *err)
{
struct btsnoop_hdr file_hdr;
@@ -473,7 +473,7 @@ gboolean btsnoop_dump_open_h1(wtap_dumper *wdh, gboolean cant_seek _U_, int *err
/* Returns TRUE on success, FALSE on failure; sets "*err" to an error code on
failure */
-gboolean btsnoop_dump_open_h4(wtap_dumper *wdh, gboolean cant_seek _U_, int *err)
+gboolean btsnoop_dump_open_h4(wtap_dumper *wdh, int *err)
{
struct btsnoop_hdr file_hdr;