From 4befb10700377fbc6318ceb9e53e43d31fb251b3 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Fri, 17 May 2013 13:27:17 +0200 Subject: 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 --- netsniff-ng.c | 4 ++-- 1 file 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" -- cgit v1.2.3-54-g00ecf