aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/btsnoop.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2015-11-09 11:54:18 -0800
committerGuy Harris <guy@alum.mit.edu>2015-11-09 19:55:13 +0000
commit09f5ff4fc6895f375b3ea07f6151d8e09377fd52 (patch)
tree5829d926242a6297803d52417c41ea5512536c23 /wiretap/btsnoop.c
parentfe12759b8e0370dd3e4e8434b4140c098ade7a38 (diff)
Call the dumper routine to finish write a file the "finish" routine.
It doesn't actually *close* any handle, so it's best called a "finish" routine rather than a "close" routine. In libwiretap modules, don't bother setting the finish routine pointer to null - it's already initialized to null (it's probably best not to require modules to set it). Change-Id: I19554f3fb826db495f17b36600ae36222cbc21b0 Reviewed-on: https://code.wireshark.org/review/11659 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'wiretap/btsnoop.c')
-rw-r--r--wiretap/btsnoop.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/wiretap/btsnoop.c b/wiretap/btsnoop.c
index a04c71b68f..5ecb42690a 100644
--- a/wiretap/btsnoop.c
+++ b/wiretap/btsnoop.c
@@ -399,9 +399,8 @@ gboolean btsnoop_dump_open_h1(wtap_dumper *wdh, int *err)
{
struct btsnoop_hdr file_hdr;
- /* This is a libpcap file */
+ /* This is a btsnoop file */
wdh->subtype_write = btsnoop_dump_h1;
- wdh->subtype_close = NULL;
/* Write the file header. */
switch (wdh->file_type_subtype) {
@@ -441,9 +440,8 @@ gboolean btsnoop_dump_open_h4(wtap_dumper *wdh, int *err)
{
struct btsnoop_hdr file_hdr;
- /* This is a libpcap file */
+ /* This is a btsnoop file */
wdh->subtype_write = btsnoop_dump_h4;
- wdh->subtype_close = NULL;
/* Write the file header. */
switch (wdh->file_type_subtype) {