From 1abeb277f5e6bd27fbaebfecc8184e37ba9d008a Mon Sep 17 00:00:00 2001 From: Michael Mann Date: Thu, 8 May 2014 22:59:19 -0400 Subject: Refactor Wiretap Start of refactoring Wiretap and breaking structures down into "generally useful fields for dissection" and "capture specific". Since this in intended as a "base" for Wiretap and Filetap, the "wft" prefix is used for "common" functionality. The "architectural" changes can be found in cfile.h, wtap.h, wtap-int.h and (new file) wftap-int.h. Most of the other (painstaking) changes were really just the result of compiling those new architecture changes. bug:9607 Change-Id: Ife858a61760d7a8a03be073546c0e7e582cab2ae Reviewed-on: https://code.wireshark.org/review/1485 Reviewed-by: Michael Mann --- rawshark.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rawshark.c') diff --git a/rawshark.c b/rawshark.c index 54fc338f10..a679caee16 100644 --- a/rawshark.c +++ b/rawshark.c @@ -867,7 +867,7 @@ main(int argc, char *argv[]) /* Set timestamp precision; there should arguably be a command-line option to let the user set this. */ #if 0 - switch(wtap_file_tsprecision(cfile.wth)) { + switch(wftap_file_tsprecision(cfile.wth)) { case(WTAP_FILE_TSPREC_SEC): timestamp_set_precision(TS_PREC_AUTO_SEC); break; @@ -1665,7 +1665,7 @@ raw_cf_open(capture_file *cf, const char *fname) epan_free(cf->epan); cf->epan = raw_epan_new(cf); - cf->wth = NULL; + cf->wfth = NULL; cf->f_datalen = 0; /* not used, but set it anyway */ /* Set the file name because we need it to set the follow stream filter. -- cgit v1.2.3