From 1a1807a4cc73337b749996fae580584904862348 Mon Sep 17 00:00:00 2001 From: Jef Driesen Date: Fri, 20 Jun 2008 13:22:33 +0000 Subject: [PATCH] Fixed a small error where two variables had the same name. --- src/suunto_common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/suunto_common.c b/src/suunto_common.c index 5a8de36..39d204a 100644 --- a/src/suunto_common.c +++ b/src/suunto_common.c @@ -28,8 +28,8 @@ suunto_common_extract_dives (const unsigned char data[], unsigned int begin, uns // Check for an end of dive marker (of the next dive), // to find the start of the current dive. - unsigned int peek = ringbuffer_decrement (current, peek, begin, end); - if (data[peek] == 0x80) { + unsigned int index = ringbuffer_decrement (current, peek, begin, end); + if (data[index] == 0x80) { unsigned int len = ringbuffer_distance (current, previous, begin, end); if (current + len > end) { unsigned int a = end - current;