diff options
author | Guy Harris <guy@alum.mit.edu> | 2000-06-27 04:36:03 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2000-06-27 04:36:03 +0000 |
commit | 7fbf320b8a93553285f702c88440c0822c66ba4d (patch) | |
tree | 862b7499b86746778e8e8441220d609f4e3cf1f6 /summary.c | |
parent | 85a7f56ac0d6f6488986cb8c0139874349e1c070 (diff) | |
download | wireshark-7fbf320b8a93553285f702c88440c0822c66ba4d.tar.gz wireshark-7fbf320b8a93553285f702c88440c0822c66ba4d.tar.bz2 wireshark-7fbf320b8a93553285f702c88440c0822c66ba4d.zip |
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.
svn path=/trunk/; revision=2092
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 |