aboutsummaryrefslogtreecommitdiffstats
path: root/extcap
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2018-11-12 15:43:10 -0800
committerGuy Harris <guy@alum.mit.edu>2018-11-13 03:37:29 +0000
commit3faa45d4ec9214fbe4b15c3b6d9bc875f8fb780c (patch)
tree98cc11031a83c66e6bbbd22ebe6c3581ca9392be /extcap
parentf070ad2c1eb2813be5d7e27b1e1bb7b844d8467e (diff)
Don't have _ng versions of the dumper open routines.
Have the routines always take a parameters pointer; pass either null or a pointer to an initialized-to-nothing structure in cases where we were calling the non-_ng versions. Change-Id: I23b779d87f3fbd29306ebe1df568852be113d3b2 Reviewed-on: https://code.wireshark.org/review/30590 Petri-Dish: Guy Harris <guy@alum.mit.edu> Tested-by: Petri Dish Buildbot Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'extcap')
-rw-r--r--extcap/androiddump.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/extcap/androiddump.c b/extcap/androiddump.c
index 858968911a..5acc404dee 100644
--- a/extcap/androiddump.c
+++ b/extcap/androiddump.c
@@ -443,11 +443,13 @@ static struct extcap_dumper extcap_dumper_open(char *fifo, int encap) {
g_warning("Write to %s failed: %s", g_strerror(errno));
}
#else
+ wtapng_dump_params params;
int err = 0;
wtap_init(FALSE);
- extcap_dumper.dumper.wtap = wtap_dump_open(fifo, WTAP_FILE_TYPE_SUBTYPE_PCAP_NSEC, encap, PACKET_LENGTH, FALSE, &err);
+ wtap_dump_params_init(&params, NULL);
+ extcap_dumper.dumper.wtap = wtap_dump_open(fifo, WTAP_FILE_TYPE_SUBTYPE_PCAP_NSEC, encap, PACKET_LENGTH, FALSE, &params, &err);
if (!extcap_dumper.dumper.wtap) {
cfile_dump_open_failure_message("androiddump", fifo, err, WTAP_FILE_TYPE_SUBTYPE_PCAP_NSEC);
exit(EXIT_CODE_CANNOT_SAVE_WIRETAP_DUMP);