mirror of
https://github.com/topjohnwu/selinux.git
synced 2024-11-27 05:20:50 +00:00
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:
parent
ef61dd7d4b
commit
840a7c9180
@ -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");
|
||||
|
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user