diff options
author | Guy Harris <guy@alum.mit.edu> | 2011-04-25 05:33:07 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2011-04-25 05:33:07 +0000 |
commit | 678be392f16cda70c04059717022d9b2d100825a (patch) | |
tree | 7de19db35225461d7a3d9418e48e78bb803382fc /summary.c | |
parent | d687ba04fdac0a694ecc87c440a77537888598f6 (diff) | |
download | wireshark-678be392f16cda70c04059717022d9b2d100825a.tar.gz wireshark-678be392f16cda70c04059717022d9b2d100825a.tar.bz2 wireshark-678be392f16cda70c04059717022d9b2d100825a.zip |
Make the packet count an unsigned value, as frame numbers are unsigned.
Make the loops that scan through all the packets do so by frame number,
to abstract away the "next" and "previous" pointers in the frame_data
structure. Add a routine to cfile.c to map frame numbers to frame_data
structures, and put in some special case handling so scanning forward or
backward through the packets is O(N) rather than O(N^2).
svn path=/trunk/; revision=36846
Diffstat (limited to 'summary.c')
-rw-r--r-- | summary.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -92,7 +92,7 @@ summary_fill_in(capture_file *cf, summary_tally *st) { frame_data *first_frame, *cur_frame; - int i; + guint32 i; frame_data *cur_glist; st->start_time = 0; |