libselinux/utils: add noreturn attribute to selinux_check_access's usage

When building libselinux, clang reports the following warning:

    selinux_check_access.c:8:1: error: function 'usage' could be
    declared with attribute 'noreturn' [-Werror,-Wmissing-noreturn]

While at it, make progname const.

Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>
This commit is contained in:
Nicolas Iooss 2017-05-03 22:58:01 +02:00 committed by Stephen Smalley
parent a9b6ef426d
commit 232ff757d4
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@
#include <unistd.h>
#include <selinux/selinux.h>
static void usage(char *progname)
static __attribute__ ((__noreturn__)) void usage(const char *progname)
{
fprintf(stderr, "usage: %s [-a auditdata] scon tcon class perm\n"
"\nWhere:\n\t"