From 678be392f16cda70c04059717022d9b2d100825a Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Mon, 25 Apr 2011 05:33:07 +0000 Subject: 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 --- summary.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'summary.c') diff --git a/summary.c b/summary.c index 82831b78d4..cda290289a 100644 --- a/summary.c +++ b/summary.c @@ -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; -- cgit v1.2.3