mirror of
https://github.com/SELinuxProject/selinux
synced 2025-01-22 13:23:17 +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