mcstrans: add noreturn attribute to usage()

Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>
This commit is contained in:
Nicolas Iooss 2017-03-05 18:13:03 +01:00 committed by James Carter
parent 840a7c9180
commit 2f8926f755
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@
#include <selinux/selinux.h> #include <selinux/selinux.h>
#include "mcstrans.h" #include "mcstrans.h"
void usage(const char *progname) static __attribute__((__noreturn__)) void usage(const char *progname)
{ {
fprintf(stderr, "usage: %s context\n", progname); fprintf(stderr, "usage: %s context\n", progname);
exit(1); exit(1);

View File

@ -7,7 +7,7 @@
#include <selinux/selinux.h> #include <selinux/selinux.h>
#include "mcstrans.h" #include "mcstrans.h"
void usage(const char *progname) static __attribute__((__noreturn__)) void usage(const char *progname)
{ {
fprintf(stderr, "usage: %s context\n", progname); fprintf(stderr, "usage: %s context\n", progname);
exit(1); exit(1);