summaryrefslogtreecommitdiffstats
path: root/commands/magicvar.c
diff options
context:
space:
mode:
authorAntony Pavlov <antonynpavlov@gmail.com>2016-02-23 23:19:47 +0300
committerSascha Hauer <s.hauer@pengutronix.de>2016-02-24 19:23:41 +0100
commit2bea4f8768c654b15e8029bc08f1a37c5f7fae1d (patch)
tree3b52ba4b5f567add3a88994a9f413f09c88eb1a0 /commands/magicvar.c
parent5bd9561e53e45867aad89102fc6362c8ee8ffd80 (diff)
downloadbarebox-2bea4f8768c654b15e8029bc08f1a37c5f7fae1d.tar.gz
commands: magicvar: make locally used magicvar_find() static
The patch fixes this compiler's warning: commands/magicvar.c:27:22: warning: no previous prototype for 'magicvar_find' [-Wmissing-prototypes] struct magicvar_dyn *magicvar_find(const char *name) ^ Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands/magicvar.c')
-rw-r--r--commands/magicvar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/magicvar.c b/commands/magicvar.c
index 6737eb5..8740784 100644
--- a/commands/magicvar.c
+++ b/commands/magicvar.c
@@ -24,7 +24,7 @@ static void magicvar_print_one(struct magicvar_dyn *md, int verbose)
}
}
-struct magicvar_dyn *magicvar_find(const char *name)
+static struct magicvar_dyn *magicvar_find(const char *name)
{
struct magicvar_dyn *md;