summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2013-05-17 13:27:17 +0200
committerTobias Klauser <tklauser@distanz.ch>2013-05-17 13:30:27 +0200
commit4befb10700377fbc6318ceb9e53e43d31fb251b3 (patch)
tree07d54a3e1553befdff523ad6c110e2c6346e0a00
parentb0e6d1d45438af6a39d4ca8576edce3f6647c46f (diff)
netsniff-ng: 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>
-rw-r--r--netsniff-ng.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/netsniff-ng.c b/netsniff-ng.c
index 82ab73c..a2f4fac 100644
--- a/netsniff-ng.c
+++ b/netsniff-ng.c
@@ -1008,7 +1008,7 @@ static void recv_only_or_dump(struct ctx *ctx)
close(sock);
}
-static void help(void)
+static void __noreturn help(void)
{
printf("\nnetsniff-ng %s, the packet sniffing beast\n", VERSION_STRING);
puts("http://www.netsniff-ng.org\n\n"
@@ -1070,7 +1070,7 @@ static void help(void)
die();
}
-static void version(void)
+static void __noreturn version(void)
{
printf("\nnetsniff-ng %s, the packet sniffing beast\n", VERSION_STRING);
puts("http://www.netsniff-ng.org\n\n"