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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Nicolas Iooss <nicolas.iooss@xxxxxxx>
---
 mcstrans/utils/transcon.c   | 2 +-
 mcstrans/utils/untranscon.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

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);
-- 
2.11.1

_______________________________________________
Selinux mailing list
Selinux@xxxxxxxxxxxxx
To unsubscribe, send email to Selinux-leave@xxxxxxxxxxxxx.
To get help, send an email containing "help" to Selinux-request@xxxxxxxxxxxxx.



[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux