aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/k12.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/k12.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/k12.c')
-rw-r--r--wiretap/k12.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/wiretap/k12.c b/wiretap/k12.c
index 58f0301030..b5558a0cf4 100644
--- a/wiretap/k12.c
+++ b/wiretap/k12.c
@@ -1302,7 +1302,7 @@ static gboolean k12_dump(wtap_dumper *wdh, const struct wtap_pkthdr *phdr,
static const guint8 k12_eof[] = {0xff,0xff};
-static gboolean k12_dump_close(wtap_dumper *wdh, int *err) {
+static gboolean k12_dump_finish(wtap_dumper *wdh, int *err) {
k12_dump_t *k12 = (k12_dump_t *)wdh->priv;
union {
guint8 b[sizeof(guint32)];
@@ -1360,7 +1360,7 @@ gboolean k12_dump_open(wtap_dumper *wdh, int *err) {
return FALSE;
wdh->subtype_write = k12_dump;
- wdh->subtype_close = k12_dump_close;
+ wdh->subtype_finish = k12_dump_finish;
k12 = (k12_dump_t *)g_malloc(sizeof(k12_dump_t));
wdh->priv = (void *)k12;