diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2000-06-27 04:36:03 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2000-06-27 04:36:03 +0000 |
commit | 022b9d3cc960ce067e772937c5835a50fb9d7c63 (patch) | |
tree | 862b7499b86746778e8e8441220d609f4e3cf1f6 /summary.c | |
parent | 1e1d5ca24c13023307274b361ebcb91093c042d5 (diff) |
Patch from Ben Fowler to rename the global variable "cf" to "cfile", to
make it easier to use grep to find all references to it without getting
a lot of false hits and to check, after allocating the memory chunk for
"frame_data" structures, that the allocation succeeded.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2092 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'summary.c')
-rw-r--r-- | summary.c | 30 |
1 files changed, 15 insertions, 15 deletions
@@ -1,7 +1,7 @@ /* summary.c * Routines for capture file summary info * - * $Id: summary.c,v 1.17 2000/04/13 20:39:18 gram Exp $ + * $Id: summary.c,v 1.18 2000/06/27 04:35:46 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -71,31 +71,31 @@ summary_fill_in(summary_tally *st) st->filtered_count = 0; /* initialize the tally */ - if (cf.plist != NULL) { - first_frame = cf.plist; + if (cfile.plist != NULL) { + first_frame = cfile.plist; st->start_time = secs_usecs(first_frame->abs_secs,first_frame->abs_usecs); st->stop_time = secs_usecs(first_frame->abs_secs,first_frame->abs_usecs); - cur_glist = cf.plist; + cur_glist = cfile.plist; - for (i = 0; i < cf.count; i++) { + for (i = 0; i < cfile.count; i++) { cur_frame = cur_glist; tally_frame_data(cur_frame, st); cur_glist = cur_glist->next; } } - st->filename = cf.filename; - st->file_length = cf.f_len; - st->encap_type = cf.cd_t; - st->snap = cf.snap; - st->elapsed_time = secs_usecs(cf.esec, cf.eusec); - st->packet_count = cf.count; - st->drops = cf.drops; - st->iface = cf.iface; - st->dfilter = cf.dfilter; + st->filename = cfile.filename; + st->file_length = cfile.f_len; + st->encap_type = cfile.cd_t; + st->snap = cfile.snap; + st->elapsed_time = secs_usecs(cfile.esec, cfile.eusec); + st->packet_count = cfile.count; + st->drops = cfile.drops; + st->iface = cfile.iface; + st->dfilter = cfile.dfilter; #ifdef HAVE_LIBPCAP - st->cfilter = cf.cfilter; + st->cfilter = cfile.cfilter; #else st->cfilter = NULL; #endif |