From: Pierre-Marc Fournier Date: Tue, 9 Mar 2010 05:12:56 +0000 (-0500) Subject: fix warnings X-Git-Tag: v0.4~33 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=dc2848112a55ee60632491148089cc60984f683d;p=ust.git fix warnings --- diff --git a/libust/buffers.h b/libust/buffers.h index 90ca5d9..2dcc924 100644 --- a/libust/buffers.h +++ b/libust/buffers.h @@ -17,7 +17,7 @@ #include "header-inline.h" #include -/***** SHOULD BE REMOVED ***** */ +/***** FIXME: SHOULD BE REMOVED ***** */ /* * BUFFER_TRUNC zeroes the subbuffer offset and the subbuffer number parts of @@ -519,7 +519,9 @@ static __inline__ int ust_buffers_write(struct ust_buffer *buf, size_t offset, return len; } -int ust_buffers_get_subbuf(struct ust_buffer *buf, long *consumed); -int ust_buffers_put_subbuf(struct ust_buffer *buf, unsigned long uconsumed_old); +extern int ust_buffers_get_subbuf(struct ust_buffer *buf, long *consumed); +extern int ust_buffers_put_subbuf(struct ust_buffer *buf, unsigned long uconsumed_old); + +extern void init_ustrelay_transport(void); #endif /* _UST_BUFFERS_H */ diff --git a/libust/marker.c b/libust/marker.c index 86b06cf..ef6f029 100644 --- a/libust/marker.c +++ b/libust/marker.c @@ -1361,7 +1361,6 @@ static void new_markers(struct marker *start, struct marker *end) int marker_register_lib(struct marker *markers_start, int markers_count) { struct lib *pl; - struct marker_addr *addr; pl = (struct lib *) malloc(sizeof(struct lib));