summaryrefslogtreecommitdiff
path: root/trafgen.c
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2013-05-17 13:32:40 +0200
committerTobias Klauser <tklauser@distanz.ch>2013-05-17 13:32:40 +0200
commit785fe152aad562addf1706ab6e6b00598b39bd2f (patch)
treebbb94be55adbdde7f63e246496ea20b48af83748 /trafgen.c
parent4befb10700377fbc6318ceb9e53e43d31fb251b3 (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.c4
1 files 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"