From: Simon Marchi Date: Mon, 25 Nov 2019 20:17:19 +0000 (-0500) Subject: consumerd: make lttng_consumer_close_all_metadata static X-Git-Tag: v2.12.0-rc1~207 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=1f8d1c146ba9c46338d04c416a75ee6d105c5c50;p=lttng-tools.git consumerd: make lttng_consumer_close_all_metadata static It is only used in its file, so make it static. Fixes: CC consumer.lo /home/smarchi/src/lttng-tools/src/common/consumer/consumer.c:2177:6: error: no previous declaration for ‘lttng_consumer_close_all_metadata’ [-Werror=missing-declarations] void lttng_consumer_close_all_metadata(void) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Simon Marchi Change-Id: I211a31a7fb5edfb76e90f1209e69bbed5dd5ec92 Signed-off-by: Jérémie Galarneau --- diff --git a/src/common/consumer/consumer.c b/src/common/consumer/consumer.c index e99dc54ed..3c51cfa6f 100644 --- a/src/common/consumer/consumer.c +++ b/src/common/consumer/consumer.c @@ -2174,6 +2174,7 @@ int lttng_consumer_recv_cmd(struct lttng_consumer_local_data *ctx, } } +static void lttng_consumer_close_all_metadata(void) { switch (consumer_data.type) {