Re: [PATCH] selinux: Fix warnings

From: AmÃrico Wang
Date: Wed Nov 18 2009 - 11:04:41 EST


On Wed, Nov 18, 2009 at 02:39:51PM +0000, Alan Cox wrote:
>scripts/selinux/genheaders/genheaders.c:20: warning: no previous prototype
>for âusageâ
>scripts/selinux/genheaders/genheaders.c:26: warning: no previous prototype
>for âstoupperxâ
>
>Signed-off-by: Alan Cox <alan@xxxxxxxxxxxxxxx>

Acked-by: WANG Cong <xiyou.wangcong@xxxxxxxxx>

>---
>
> scripts/selinux/genheaders/genheaders.c | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
>
>diff --git a/scripts/selinux/genheaders/genheaders.c b/scripts/selinux/genheaders/genheaders.c
>index 3b16145..771b86f 100644
>--- a/scripts/selinux/genheaders/genheaders.c
>+++ b/scripts/selinux/genheaders/genheaders.c
>@@ -17,13 +17,13 @@ struct security_class_mapping {
>
> const char *progname;
>
>-void usage(void)
>+static void usage(void)
> {
> printf("usage: %s flask.h av_permissions.h\n", progname);
> exit(1);
> }
>
>-char *stoupperx(const char *s)
>+static char *stoupperx(const char *s)
> {
> char *s2 = strdup(s);
> char *p;
>
>--
>To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
>the body of a message to majordomo@xxxxxxxxxxxxxxx
>More majordomo info at http://vger.kernel.org/majordomo-info.html
>Please read the FAQ at http://www.tux.org/lkml/

--
Live like a child, think like the god.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/