diff mbox

[4/6] mcstrans: add noreturn attribute to usage()

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

Commit Message

Nicolas Iooss March 5, 2017, 5:13 p.m. UTC
Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>
---
 mcstrans/utils/transcon.c   | 2 +-
 mcstrans/utils/untranscon.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/mcstrans/utils/transcon.c b/mcstrans/utils/transcon.c
index 5189f0fa8712..f4ded53e9609 100644
--- a/mcstrans/utils/transcon.c
+++ b/mcstrans/utils/transcon.c
@@ -7,7 +7,7 @@ 
 #include <selinux/selinux.h>
 #include "mcstrans.h"
 
-void usage(const char *progname) 
+static __attribute__((__noreturn__)) void usage(const char *progname)
 {
 	fprintf(stderr, "usage:  %s context\n", progname);
 	exit(1);
diff --git a/mcstrans/utils/untranscon.c b/mcstrans/utils/untranscon.c
index f47b6ea81b14..85cea294e88d 100644
--- a/mcstrans/utils/untranscon.c
+++ b/mcstrans/utils/untranscon.c
@@ -7,7 +7,7 @@ 
 #include <selinux/selinux.h>
 #include "mcstrans.h"
 
-void usage(const char *progname) 
+static __attribute__((__noreturn__)) void usage(const char *progname)
 {
 	fprintf(stderr, "usage:  %s context\n", progname);
 	exit(1);