Fix warnings and timespan_end
authorYannick Brosseau <yannick.brosseau@gmail.com>
Tue, 14 Aug 2012 19:21:11 +0000 (15:21 -0400)
committerYannick Brosseau <yannick.brosseau@gmail.com>
Tue, 14 Aug 2012 19:21:11 +0000 (15:21 -0400)
Signed-off-by: Yannick Brosseau <yannick.brosseau@gmail.com>
lttv/lttv/traceset.c
lttv/modules/gui/controlflow/eventhooks.c

index 7e86c5b764b8e2c0e1f0787f6826b2e99c23932a..61349656b1683b35e12639909700170820fd52b5 100644 (file)
@@ -609,7 +609,8 @@ TimeInterval lttv_traceset_get_time_span_real(LttvTraceset *ts)
                ts->time_span.end_time = ltt_time_from_uint64(
                                        lttv_traceset_get_timestamp_end(ts));
 #else
-               ts->time_span.end_time = lttv_traceset_get_time_span(ts).end_time;      
+               ts->time_span.end_time = ltt_time_from_uint64(
+                                       lttv_traceset_get_timestamp_end(ts));   
 #endif
        }
         return ts->time_span;
index 70ce458d17074f7aece70ace81073db2a61ecd4a..72ea69866d04d7cb7a82da3b26dfac14dcb610f5 100644 (file)
@@ -471,8 +471,8 @@ int before_trywakeup_hook(void *hook_data, void *call_data)
 
   tfc->target_pid = target_pid_saved;
 
-  return 0;
 #endif //babel_cleanup
+  return 0;
 
 }
 
@@ -989,8 +989,8 @@ int after_schedchange_hook(void *hook_data, void *call_data)
     }
   }
 
-  return 0;
 #endif //babel_cleanup
+  return 0;
 }
 
 
@@ -1018,7 +1018,7 @@ int before_execmode_hook(void *hook_data, void *call_data)
 {
   LttvEvent *event;
   guint cpu;
-  guint pid;
+  guint pid = 0;
   LttvTraceState *ts;
   LttvProcessState *process;
   
@@ -1399,8 +1399,8 @@ int before_process_exit_hook(void *hook_data, void *call_data)
     }
   }
   
-  return 0;
 #endif //babel_cleanup
+  return 0;
 
 }
 
@@ -1583,8 +1583,8 @@ int before_process_release_hook(void *hook_data, void *call_data)
     }
   }
 
-  return 0;
 #endif //babel_cleanup
+  return 0;
 }
 
 
@@ -1719,8 +1719,8 @@ int after_process_fork_hook(void *hook_data, void *call_data)
       hashed_process_data_child->x.under_marked = FALSE;
     }
   }
-  return FALSE;
 #endif //babel_cleanup
+  return FALSE;
 }
 
 
@@ -1842,8 +1842,8 @@ int after_process_exit_hook(void *hook_data, void *call_data)
     }
   }
 
-  return FALSE;
 #endif //babel_cleanup
+  return FALSE;
 }
 
 
@@ -1925,8 +1925,8 @@ int after_fs_exec_hook(void *hook_data, void *call_data)
 
   processlist_set_name(process_list, process->name, hashed_process_data);
 
-  return 0;
 #endif //babel_cleanup
+  return 0;
 
 }
 
@@ -2008,8 +2008,8 @@ int after_user_generic_thread_brand_hook(void *hook_data, void *call_data)
 
   processlist_set_brand(process_list, process->brand, hashed_process_data);
 
-  return 0;
 #endif //babel_cleanup
+  return 0;
 }
 
 
@@ -2120,8 +2120,8 @@ int after_event_enum_process_hook(void *hook_data, void *call_data)
                            hashed_process_data_in);
     }
   }
-  return 0;
 #endif //babel_cleanup
+  return 0;
 }
 
 
@@ -2880,6 +2880,6 @@ int before_statedump_end(void *hook_data, void *call_data)
   /* Request expose (updates damages zone also) */
   drawing_request_expose(events_request, tss, evtime);
 
-  return 0;
 #endif //babel_cleanup
+  return 0;
 }
This page took 0.028514 seconds and 4 git commands to generate.