diff options
author | Guy Harris <guy@alum.mit.edu> | 2014-11-22 00:06:54 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2014-11-22 08:07:24 +0000 |
commit | b19b12a85daa9ec91537c733d05550f5dfafa0eb (patch) | |
tree | c97c8158905d05f4f8a29980de89b3e5022352e6 /tshark.c | |
parent | 6e1214c4df15acba6f55a75256e90dc96640d4b3 (diff) |
Get rid of write_headers global variable.
Have write_psml_preamble() and write_csv_preamble() take a capture_file *
as an argument, so they can print the column titles themselves, rather
than having to defer it to the routine that prints packet data.
Change-Id: Ifd1b7a13062be8ad46846315976922a752778153
Reviewed-on: https://code.wireshark.org/review/5438
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'tshark.c')
-rw-r--r-- | tshark.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -3596,7 +3596,7 @@ write_preamble(capture_file *cf) if (print_details) write_pdml_preamble(stdout, cf ? cf->filename : NULL); else - write_psml_preamble(stdout); + write_psml_preamble(cf, stdout); return !ferror(stdout); case WRITE_FIELDS: |