[PATCH] commands: magicvar: make locally used magicvar_find() static

Antony Pavlov antonynpavlov at gmail.com
Tue Feb 23 12:19:47 PST 2016


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 at gmail.com>
---
 commands/magicvar.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
 
-- 
2.7.0




More information about the barebox mailing list