* [PATCH] commands: magicvar: make locally used magicvar_find() static
@ 2016-02-23 20:19 Antony Pavlov
2016-02-24 18:04 ` Sascha Hauer
0 siblings, 1 reply; 2+ messages in thread
From: Antony Pavlov @ 2016-02-23 20:19 UTC (permalink / raw)
To: barebox
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>
---
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
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] commands: magicvar: make locally used magicvar_find() static
2016-02-23 20:19 [PATCH] commands: magicvar: make locally used magicvar_find() static Antony Pavlov
@ 2016-02-24 18:04 ` Sascha Hauer
0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2016-02-24 18:04 UTC (permalink / raw)
To: Antony Pavlov; +Cc: barebox
On Tue, Feb 23, 2016 at 11:19:47PM +0300, Antony Pavlov wrote:
> 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>
> ---
> commands/magicvar.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Applied, thanks
Sascha
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-02-24 18:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-23 20:19 [PATCH] commands: magicvar: make locally used magicvar_find() static Antony Pavlov
2016-02-24 18:04 ` Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox