mirror of
https://github.com/SELinuxProject/selinux
synced 2025-02-02 10:52:04 +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
|
#endif
|
||||||
#include <sepol/policydb.h>
|
#include <sepol/policydb.h>
|
||||||
|
|
||||||
void usage(char *prog)
|
static __attribute__((__noreturn__)) void usage(const char *prog)
|
||||||
{
|
{
|
||||||
printf("Usage: %s [OPTION]... FILE...\n", prog);
|
printf("Usage: %s [OPTION]... FILE...\n", prog);
|
||||||
printf("\n");
|
printf("\n");
|
||||||
|
@ -41,7 +41,7 @@
|
|||||||
#endif
|
#endif
|
||||||
#include <sepol/policydb.h>
|
#include <sepol/policydb.h>
|
||||||
|
|
||||||
void usage(char *prog)
|
static __attribute__((__noreturn__)) void usage(const char *prog)
|
||||||
{
|
{
|
||||||
printf("Usage: %s [OPTION]... FILE...\n", prog);
|
printf("Usage: %s [OPTION]... FILE...\n", prog);
|
||||||
printf("\n");
|
printf("\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user