From: Simon Marchi Date: Mon, 25 Nov 2019 21:10:17 +0000 (-0500) Subject: tests: make entry_handler static in ini_config test X-Git-Tag: v2.12.0-rc1~189 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=d04ee1a09b04951ccecfda368b0660bf79977d83;p=lttng-tools.git tests: make entry_handler static in ini_config test Fixes: CC ini_config.o /home/smarchi/src/lttng-tools/tests/unit/ini_config/ini_config.c:37:5: error: no previous declaration for ‘entry_handler’ [-Werror=missing-declarations] int entry_handler(const struct config_entry *entry, ^~~~~~~~~~~~~ Change-Id: I937fda691d5ab81bf7567ab50fd90903911dfc57 Signed-off-by: Simon Marchi Signed-off-by: Jérémie Galarneau --- diff --git a/tests/unit/ini_config/ini_config.c b/tests/unit/ini_config/ini_config.c index bf20d1561..e759faf78 100644 --- a/tests/unit/ini_config/ini_config.c +++ b/tests/unit/ini_config/ini_config.c @@ -34,8 +34,7 @@ int lttng_opt_quiet = 1; int lttng_opt_verbose = 0; int lttng_opt_mi; -int entry_handler(const struct config_entry *entry, - struct state *state) +static int entry_handler(const struct config_entry *entry, struct state *state) { int ret = 0;