Define ltt_transport_list as static
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 10 Nov 2011 17:40:05 +0000 (12:40 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 10 Nov 2011 17:40:05 +0000 (12:40 -0500)
Fix uninitialized state at constructor execution.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
include/lttng/ust-events.h
liblttng-ust/ust-core.c

index 5c649e73969b3aa6a978f889d829e3e3583db9c1..b930a3495d073c4c5e9cf640419cd72561810db8 100644 (file)
@@ -360,7 +360,6 @@ const struct lttng_ust_lib_ring_buffer_client_cb *lttng_client_callbacks_metadat
 const struct lttng_ust_lib_ring_buffer_client_cb *lttng_client_callbacks_discard;
 const struct lttng_ust_lib_ring_buffer_client_cb *lttng_client_callbacks_overwrite;
 
-struct cds_list_head ltt_transport_list;
 struct ltt_transport *ltt_transport_find(const char *name);
 
 #endif /* _LTTNG_UST_EVENTS_H */
index 67e016007dd8bbb540d874b639f19738f7c6ef13..80bd42b0bb4e57261fc5b56929cf8e53dbcf674c 100644 (file)
@@ -22,7 +22,7 @@
 #include <lttng/ust-events.h>
 #include <stdlib.h>
 
-CDS_LIST_HEAD(ltt_transport_list);
+static CDS_LIST_HEAD(ltt_transport_list);
 
 void init_usterr(void)
 {
This page took 0.03186 seconds and 4 git commands to generate.