Skip to contentSkip to conversation

selinux: Fix warnings

PATCH In review Alan Cox 3 participants 3 messages Nov 18, 2009 SELinux security module

lore
Share & tools
lore

Alan Cox

author
#0 lore raw

PATCH 1/1 selinux: Fix warnings

scripts/selinux/genheaders/genheaders.c:20: warning: no previous prototype for ‘usage’
scripts/selinux/genheaders/genheaders.c:26: warning: no previous prototype for ‘stoupperx’

---

 scripts/selinux/genheaders/genheaders.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
scripts/selinux/genheaders/genheaders.c +2 -2
index 3b16145..771b86f 100644
@@ -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;
Acked-by on v1 1/1
#1 lore raw
Quoted 6 lines · Alan Cox

scripts/selinux/genheaders/genheaders.c:20: warning: no previous prototype for ‘usage’
scripts/selinux/genheaders/genheaders.c:26: warning: no previous prototype for ‘stoupperx’

Quoted 32 lines

---

scripts/selinux/genheaders/genheaders.c | 4 ++--

1 files changed, 2 insertions(+), 2 deletions(-)
scripts/selinux/genheaders/genheaders.c +2 -3
index 3b16145..771b86f 100644
@@ -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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

Signature · 1 line
Live like a child, think like the god.
#2 lore raw
Quoted 10 lines · Am?rico Wang
Quoted 6 lines · Alan Cox

scripts/selinux/genheaders/genheaders.c:20: warning: no previous prototype for ?usage?
scripts/selinux/genheaders/genheaders.c:26: warning: no previous prototype for ?stoupperx?

Thanks.

Applied to
git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/security-testing-2.6#next

Quoted 37 lines
Quoted 32 lines

---

scripts/selinux/genheaders/genheaders.c | 4 ++--

1 files changed, 2 insertions(+), 2 deletions(-)
scripts/selinux/genheaders/genheaders.c +2 -3
index 3b16145..771b86f 100644
@@ -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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

Signature · 1 line
Live like a child, think like the god.
Signature · 2 lines
James Morris
<[email protected]>