From 826f1ab264718e5e4c6b101557cd205422d3d20b Mon Sep 17 00:00:00 2001 From: compudj Date: Tue, 23 Aug 2005 01:44:35 +0000 Subject: [PATCH] warning fixes git-svn-id: http://ltt.polymtl.ca/svn@1057 04897980-b3bd-0310-b5e0-8ef037075253 --- ltt/branches/poly/ltt/trace.h | 2 +- ltt/branches/poly/ltt/tracefile.c | 2 +- ltt/branches/poly/lttv/lttv/filter.c | 6 +++--- ltt/branches/poly/lttv/lttv/stats.c | 1 + ltt/branches/poly/lttv/lttv/tracecontext.c | 3 ++- 5 files changed, 8 insertions(+), 6 deletions(-) diff --git a/ltt/branches/poly/ltt/trace.h b/ltt/branches/poly/ltt/trace.h index 900a72de..7736d8f3 100644 --- a/ltt/branches/poly/ltt/trace.h +++ b/ltt/branches/poly/ltt/trace.h @@ -43,7 +43,7 @@ LttTrace *ltt_trace_open(const gchar *pathname); */ LttTrace *ltt_trace_copy(LttTrace *self); -GQuark ltt_trace_name(LttTrace *t); +GQuark ltt_trace_name(const LttTrace *t); void ltt_trace_close(LttTrace *t); diff --git a/ltt/branches/poly/ltt/tracefile.c b/ltt/branches/poly/ltt/tracefile.c index 5f4b4e28..fc1f4583 100644 --- a/ltt/branches/poly/ltt/tracefile.c +++ b/ltt/branches/poly/ltt/tracefile.c @@ -1034,7 +1034,7 @@ alloc_error: } -GQuark ltt_trace_name(LttTrace *t) +GQuark ltt_trace_name(const LttTrace *t) { return t->pathname; } diff --git a/ltt/branches/poly/lttv/lttv/filter.c b/ltt/branches/poly/lttv/lttv/filter.c index 605a3d9f..06c8370c 100644 --- a/ltt/branches/poly/lttv/lttv/filter.c +++ b/ltt/branches/poly/lttv/lttv/filter.c @@ -423,14 +423,14 @@ lttv_simple_expression_assign_value(LttvSimpleExpression* se, char* value) { /* cannot specify number with more than one '.' */ if(is_double) return FALSE; else is_double = TRUE; - t.tv_sec = atoi(v); + t.tv_sec = atoi(v->str); g_string_free(v,TRUE); v = g_string_new(""); } else g_string_append_c(v,value[i]); } /* number can be integer or double */ - if(is_double) t.tv_nsec = atoi(v); - else t.tv_sec = atoi(v); + if(is_double) t.tv_nsec = atoi(v->str); + else t.tv_sec = atoi(v->str); g_string_free(v,TRUE); diff --git a/ltt/branches/poly/lttv/lttv/stats.c b/ltt/branches/poly/lttv/lttv/stats.c index 00e88110..c16302fa 100644 --- a/ltt/branches/poly/lttv/lttv/stats.c +++ b/ltt/branches/poly/lttv/lttv/stats.c @@ -28,6 +28,7 @@ #include #include #include +#include #define BUF_SIZE 256 diff --git a/ltt/branches/poly/lttv/lttv/tracecontext.c b/ltt/branches/poly/lttv/lttv/tracecontext.c index 3aa099d6..81088df2 100644 --- a/ltt/branches/poly/lttv/lttv/tracecontext.c +++ b/ltt/branches/poly/lttv/lttv/tracecontext.c @@ -930,6 +930,7 @@ lttv_trace_find_hook(LttTrace *t, GQuark facility, GQuark event, thf->f3 = find_field(et, field3); first_thf = thf; + first_et = et; /* Check for type compatibility too */ for(i=1;ilen;i++) { @@ -1078,7 +1079,7 @@ gint lttv_traceset_context_ctx_pos_compare(const LttvTracesetContext *self, const LttvTracesetContextPosition *pos) { int i; - int ret; + int ret = 0; for(i=0;iep->len;i++) { LttEventPosition *ep = g_array_index(pos->ep, LttEventPosition*, i); -- 2.34.1