From 785fe152aad562addf1706ab6e6b00598b39bd2f Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Fri, 17 May 2013 13:32:40 +0200 Subject: 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 --- trafgen.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trafgen.c b/trafgen.c index 5ec837b..b1950c4 100644 --- a/trafgen.c +++ b/trafgen.c @@ -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" -- cgit v1.2.3-54-g00ecf