secilc: add noreturn attribute to usage()

While at it, make usage() static and mark its argument as const.

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

View File

@ -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");

View File

@ -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");