From dc9127ddff6081ab3a7e7480621405119ad38d95 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Sun, 23 Apr 2017 01:29:23 -0700 Subject: Rename read{_cap}_file() to process{_cap+_file(). They might read the file once or twice, but the key is that they (and what they call) are doing the work of processing the file's contents. Change-Id: I2df6257c55ff5ace944f1a1db5e2aec456ed2038 Reviewed-on: https://code.wireshark.org/review/21293 Reviewed-by: Guy Harris --- tfshark.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tfshark.c') diff --git a/tfshark.c b/tfshark.c index 5dc3843ad6..54ab61c4fa 100644 --- a/tfshark.c +++ b/tfshark.c @@ -136,7 +136,7 @@ static output_fields_t* output_fields = NULL; /* The line separator used between packets, changeable via the -S option */ static const char *separator = ""; -static gboolean read_file(capture_file *, int, gint64); +static gboolean process_file(capture_file *, int, gint64); static gboolean process_packet_single_pass(capture_file *cf, epan_dissect_t *edt, gint64 offset, struct wtap_pkthdr *whdr, const guchar *pd, guint tap_flags); @@ -982,7 +982,7 @@ main(int argc, char *argv[]) /* Process the packets in the file */ TRY { /* XXX - for now there is only 1 packet */ - success = read_file(&cfile, 1, 0); + success = process_file(&cfile, 1, 0); } CATCH(OutOfMemoryError) { fprintf(stderr, @@ -1296,7 +1296,7 @@ local_wtap_read(capture_file *cf, struct wtap_pkthdr* file_phdr _U_, int *err, g } static gboolean -read_file(capture_file *cf, int max_packet_count, gint64 max_byte_count) +process_file(capture_file *cf, int max_packet_count, gint64 max_byte_count) { guint32 framenum; int err; -- cgit v1.2.3