aboutsummaryrefslogtreecommitdiffstats
path: root/file.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 /file.c
parent6e1214c4df15acba6f55a75256e90dc96640d4b3 (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 'file.c')
-rw-r--r--file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/file.c b/file.c
index ecb42887b5..8606b97a3d 100644
--- a/file.c
+++ b/file.c
@@ -2821,7 +2821,7 @@ cf_write_psml_packets(capture_file *cf, print_args_t *print_args)
if (fh == NULL)
return CF_PRINT_OPEN_ERROR; /* attempt to open destination failed */
- write_psml_preamble(fh);
+ write_psml_preamble(cf, fh);
if (ferror(fh)) {
fclose(fh);
return CF_PRINT_WRITE_ERROR;
@@ -2902,7 +2902,7 @@ cf_write_csv_packets(capture_file *cf, print_args_t *print_args)
if (fh == NULL)
return CF_PRINT_OPEN_ERROR; /* attempt to open destination failed */
- write_csv_preamble(fh);
+ write_csv_preamble(cf, fh);
if (ferror(fh)) {
fclose(fh);
return CF_PRINT_WRITE_ERROR;