diff options
author | Guy Harris <guy@alum.mit.edu> | 2018-11-12 15:43:10 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2018-11-13 03:37:29 +0000 |
commit | 3faa45d4ec9214fbe4b15c3b6d9bc875f8fb780c (patch) | |
tree | 98cc11031a83c66e6bbbd22ebe6c3581ca9392be /tshark.c | |
parent | f070ad2c1eb2813be5d7e27b1e1bb7b844d8467e (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 'tshark.c')
-rw-r--r-- | tshark.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -3136,20 +3136,20 @@ process_cap_file(capture_file *cf, char *save_file, int out_file_type, if (strcmp(save_file, "-") == 0) { /* Write to the standard output. */ pdh = wtap_dump_open_stdout(out_file_type, linktype, - snapshot_length, FALSE /* compressed */, &err); + snapshot_length, FALSE /* compressed */, NULL, &err); } else { pdh = wtap_dump_open(save_file, out_file_type, linktype, - snapshot_length, FALSE /* compressed */, &err); + snapshot_length, FALSE /* compressed */, NULL, &err); } } else { tshark_debug("tshark: writing format type %d, to %s", out_file_type, save_file); if (strcmp(save_file, "-") == 0) { /* Write to the standard output. */ - pdh = wtap_dump_open_stdout_ng(out_file_type, linktype, + pdh = wtap_dump_open_stdout(out_file_type, linktype, snapshot_length, FALSE /* compressed */, &ng_params, &err); } else { - pdh = wtap_dump_open_ng(save_file, out_file_type, linktype, + pdh = wtap_dump_open(save_file, out_file_type, linktype, snapshot_length, FALSE /* compressed */, &ng_params, &err); } } |