From: Mathieu Desnoyers Date: Mon, 24 Aug 2015 19:04:03 +0000 (-0400) Subject: Cleanup: privatize consumer_allocate_relayd_sock_pair X-Git-Tag: v2.8.0-rc1~419 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=027a694fd396114812d927115f3561088e1b769f;p=lttng-tools.git Cleanup: privatize consumer_allocate_relayd_sock_pair Only used in a single compilation unit. Signed-off-by: Mathieu Desnoyers Signed-off-by: Jérémie Galarneau --- diff --git a/src/common/consumer.c b/src/common/consumer.c index f2ccf9536..c34f47c33 100644 --- a/src/common/consumer.c +++ b/src/common/consumer.c @@ -713,7 +713,7 @@ end: /* * Allocate and return a consumer relayd socket. */ -struct consumer_relayd_sock_pair *consumer_allocate_relayd_sock_pair( +static struct consumer_relayd_sock_pair *consumer_allocate_relayd_sock_pair( uint64_t net_seq_idx) { struct consumer_relayd_sock_pair *obj = NULL; diff --git a/src/common/consumer.h b/src/common/consumer.h index ac3b4903f..c7ef3fb38 100644 --- a/src/common/consumer.h +++ b/src/common/consumer.h @@ -631,8 +631,6 @@ int consumer_add_channel(struct lttng_consumer_channel *channel, void consumer_del_channel(struct lttng_consumer_channel *channel); /* lttng-relayd consumer command */ -struct consumer_relayd_sock_pair *consumer_allocate_relayd_sock_pair( - uint64_t net_seq_idx); struct consumer_relayd_sock_pair *consumer_find_relayd(uint64_t key); int consumer_send_relayd_stream(struct lttng_consumer_stream *stream, char *path); int consumer_send_relayd_streams_sent(uint64_t net_seq_idx);