[lttng-dev] [PATCH babeltrace 2/4] Cleanup: bt namespace for compat timegm

Michael Jeanson mjeanson at efficios.com
Thu Sep 15 00:32:28 UTC 2016


Signed-off-by: Michael Jeanson <mjeanson at efficios.com>
---
 converter/babeltrace-log.c      | 2 +-
 include/babeltrace/compat/utc.h | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/converter/babeltrace-log.c b/converter/babeltrace-log.c
index db7f60f..8cb35d1 100644
--- a/converter/babeltrace-log.c
+++ b/converter/babeltrace-log.c
@@ -230,7 +230,7 @@ void write_event_header(struct ctf_stream_pos *pos, char *line,
 			ti.tm_min = min;
 			ti.tm_sec = sec;
 
-			ep_sec = babeltrace_timegm(&ti);
+			ep_sec = bt_timegm(&ti);
 			if (ep_sec != (time_t) -1) {
 				*ts = (uint64_t) ep_sec * NSEC_PER_SEC
 					+ (uint64_t) msec * NSEC_PER_MSEC;
diff --git a/include/babeltrace/compat/utc.h b/include/babeltrace/compat/utc.h
index d59d856..fd41f62 100644
--- a/include/babeltrace/compat/utc.h
+++ b/include/babeltrace/compat/utc.h
@@ -29,7 +29,7 @@
 #if defined(_BSD_SOURCE) || defined(_SVID_SOURCE)
 
 static inline
-time_t babeltrace_timegm(struct tm *tm)
+time_t bt_timegm(struct tm *tm)
 {
 	return timegm(tm);
 }
@@ -47,7 +47,7 @@ time_t babeltrace_timegm(struct tm *tm)
  */
 
 static inline
-time_t babeltrace_timegm(struct tm *tm)
+time_t bt_timegm(struct tm *tm)
 {
 	time_t ret;
 	char *tz;
-- 
2.7.4



More information about the lttng-dev mailing list