warning fixes
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Tue, 23 Aug 2005 01:44:35 +0000 (01:44 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Tue, 23 Aug 2005 01:44:35 +0000 (01:44 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@1057 04897980-b3bd-0310-b5e0-8ef037075253

ltt/branches/poly/ltt/trace.h
ltt/branches/poly/ltt/tracefile.c
ltt/branches/poly/lttv/lttv/filter.c
ltt/branches/poly/lttv/lttv/stats.c
ltt/branches/poly/lttv/lttv/tracecontext.c

index 900a72de18355ef75faa7a8f6468cae19e056b3b..7736d8f30ad49831da2c150ca3b30dd43c6e86a9 100644 (file)
@@ -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); 
 
index 5f4b4e28dc6ed2c513b38afe3e87ab5ed3cd16e2..fc1f4583d009a732982d96d94a8cd57bb418eb6d 100644 (file)
@@ -1034,7 +1034,7 @@ alloc_error:
 
 }
 
-GQuark ltt_trace_name(LttTrace *t)
+GQuark ltt_trace_name(const LttTrace *t)
 {
   return t->pathname;
 }
index 605a3d9f1bebf48b1b1aeb4028397f80d69df896..06c8370c8f8ce960bfcc7f18f1bcc05f947f9993 100644 (file)
@@ -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);
        
index 00e8811004dfda3f594e35ad19afeededd227e76..c16302faefa70e60b9bcd839ad5b1b6918208f9e 100644 (file)
@@ -28,6 +28,7 @@
 #include <ltt/facility.h>
 #include <ltt/trace.h>
 #include <ltt/event.h>
+#include <ltt/type.h>
 
 #define BUF_SIZE 256
 
index 3aa099d6108c0ea0c7f42fe5fa0610b833cdf133..81088df25b52c57147e2dbf38a0a6b219c244ebe 100644 (file)
@@ -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;i<facilities->len;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;i<pos->ep->len;i++) {
     LttEventPosition *ep = g_array_index(pos->ep, LttEventPosition*, i);
This page took 0.032563 seconds and 4 git commands to generate.