diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2013-05-17 13:32:40 +0200 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2013-05-17 13:32:40 +0200 |
commit | 785fe152aad562addf1706ab6e6b00598b39bd2f (patch) | |
tree | bbb94be55adbdde7f63e246496ea20b48af83748 /trafgen.c | |
parent | 4befb10700377fbc6318ceb9e53e43d31fb251b3 (diff) |
trafgen: Add __noreturn attribute to exiting functions
Add the __noreturn attribute to all functions which wont return
but call die() themselves to exit().
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'trafgen.c')
-rw-r--r-- | trafgen.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -157,7 +157,7 @@ static void timer_purge(void) setitimer(ITIMER_REAL, &itimer, NULL); } -static void help(void) +static void __noreturn help(void) { printf("\ntrafgen %s, multithreaded zero-copy network packet generator\n", VERSION_STRING); puts("http://www.netsniff-ng.org\n\n" @@ -219,7 +219,7 @@ static void help(void) die(); } -static void example(void) +static void __noreturn example(void) { const char *e = "/* Note: dynamic elements make trafgen slower! */\n" |