diff mbox

[3/6] secilc: add noreturn attribute to usage()

Message ID 20170305171305.23170-3-nicolas.iooss@m4x.org (mailing list archive)
State Not Applicable
Headers show

Commit Message

Nicolas Iooss March 5, 2017, 5:13 p.m. UTC
While at it, make usage() static and mark its argument as const.

Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>
---
 secilc/secil2conf.c | 2 +-
 secilc/secilc.c     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/secilc/secil2conf.c b/secilc/secil2conf.c
index ff564f08ab8a..5d8fe870394d 100644
--- a/secilc/secil2conf.c
+++ b/secilc/secil2conf.c
@@ -41,7 +41,7 @@ 
 #endif
 #include <sepol/policydb.h>
 
-void usage(char *prog)
+static __attribute__((__noreturn__)) void usage(const char *prog)
 {
 	printf("Usage: %s [OPTION]... FILE...\n", prog);
 	printf("\n");
diff --git a/secilc/secilc.c b/secilc/secilc.c
index dad1e904eb61..f4ecbeec73fb 100644
--- a/secilc/secilc.c
+++ b/secilc/secilc.c
@@ -41,7 +41,7 @@ 
 #endif
 #include <sepol/policydb.h>
 
-void usage(char *prog)
+static __attribute__((__noreturn__)) void usage(const char *prog)
 {
 	printf("Usage: %s [OPTION]... FILE...\n", prog);
 	printf("\n");