summaryrefslogtreecommitdiff
path: root/tshark.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-11-22 00:06:54 -0800
committerGuy Harris <guy@alum.mit.edu>2014-11-22 08:07:24 +0000
commitb19b12a85daa9ec91537c733d05550f5dfafa0eb (patch)
treec97c8158905d05f4f8a29980de89b3e5022352e6 /tshark.c
parent6e1214c4df15acba6f55a75256e90dc96640d4b3 (diff)
downloadwireshark-b19b12a85daa9ec91537c733d05550f5dfafa0eb.tar.gz
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tshark.c b/tshark.c
index 10dbb5f6d9..7879f296b9 100644
--- a/tshark.c
+++ b/tshark.c
@@ -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: