Skip to content

Commit 970a15e

Browse files
committed
add noreturn function attribute to usage
1 parent a927c9c commit 970a15e

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/auditd.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ static const char *startup_states[] = {"disable", "enable", "nochange"};
113113
/*
114114
* Output a usage message
115115
*/
116+
static void usage(void) __attribute__((noreturn));
116117
static void usage(void)
117118
{
118119
fprintf(stderr,

tools/ausyscall/ausyscall.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131

3232
#define LAST_SYSCALL 1400 // IA64 is in the 1300's right now
3333

34+
void usage(void) __attribute__((noreturn));
3435
void usage(void)
3536
{
3637
fprintf(stderr, "usage: ausyscall [arch] name | number | --dump | --exact\n");

0 commit comments

Comments
 (0)