From: Simon Marchi Date: Mon, 25 Nov 2019 20:42:04 +0000 (-0500) Subject: sessiond: make disable_context static X-Git-Tag: v2.12.0-rc1~198 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=46440d0ccf65b098757389ffebb0f7452626c4a3;p=lttng-tools.git sessiond: make disable_context static Fixes: CC agent.o /home/smarchi/src/lttng-tools/src/bin/lttng-sessiond/agent.c:833:5: error: no previous declaration for ‘disable_context’ [-Werror=missing-declarations] int disable_context(struct agent_app_ctx *ctx, enum lttng_domain_type domain) ^~~~~~~~~~~~~~~ Signed-off-by: Simon Marchi Change-Id: I3f8eb7e658e558f7082781c95b4200607e5dad6f Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-sessiond/agent.c b/src/bin/lttng-sessiond/agent.c index 9ea899f57..3cb33caef 100644 --- a/src/bin/lttng-sessiond/agent.c +++ b/src/bin/lttng-sessiond/agent.c @@ -830,7 +830,8 @@ end: * * Return LTTNG_OK on success or else a LTTNG_ERR* code. */ -int disable_context(struct agent_app_ctx *ctx, enum lttng_domain_type domain) +static int disable_context(struct agent_app_ctx *ctx, + enum lttng_domain_type domain) { int ret = LTTNG_OK; struct agent_app *app;