From 04b44e05c17a54fcb7e2cccf5c10a4edf8c7fd5c Mon Sep 17 00:00:00 2001 From: compudj Date: Wed, 26 May 2004 20:35:20 +0000 Subject: [PATCH] added const git-svn-id: http://ltt.polymtl.ca/svn@559 04897980-b3bd-0310-b5e0-8ef037075253 --- ltt/branches/poly/ltt/ltt.h | 4 ++-- ltt/branches/poly/ltt/trace.h | 2 +- ltt/branches/poly/ltt/tracefile.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ltt/branches/poly/ltt/ltt.h b/ltt/branches/poly/ltt/ltt.h index 0aa413bd..c83ed652 100644 --- a/ltt/branches/poly/ltt/ltt.h +++ b/ltt/branches/poly/ltt/ltt.h @@ -96,8 +96,8 @@ typedef unsigned long LttChecksum; typedef struct _TimeInterval{ - LttTime startTime; - LttTime endTime; + LttTime start_time; + LttTime end_time; } TimeInterval; diff --git a/ltt/branches/poly/ltt/trace.h b/ltt/branches/poly/ltt/trace.h index 2b3f8533..42fff96f 100644 --- a/ltt/branches/poly/ltt/trace.h +++ b/ltt/branches/poly/ltt/trace.h @@ -116,7 +116,7 @@ void ltt_tracefile_seek_time(LttTracefile *t, LttTime time); /* Seek to the first event with position equal or larger to ep */ void ltt_tracefile_seek_position(LttTracefile *t, - LttEventPosition *ep); + const LttEventPosition *ep); /* Read the next event */ diff --git a/ltt/branches/poly/ltt/tracefile.c b/ltt/branches/poly/ltt/tracefile.c index f8b194a3..225f7eac 100644 --- a/ltt/branches/poly/ltt/tracefile.c +++ b/ltt/branches/poly/ltt/tracefile.c @@ -903,7 +903,7 @@ void ltt_tracefile_seek_time(LttTracefile *t, LttTime time) * Seek to the first event with position equal or larger to ep ****************************************************************************/ -void ltt_tracefile_seek_position(LttTracefile *t, LttEventPosition *ep) +void ltt_tracefile_seek_position(LttTracefile *t, const LttEventPosition *ep) { //if we are at the right place, just return if(t->which_block == ep->block_num && t->which_event == ep->event_num) -- 2.34.1