From 24a43b391b351c3f6f7de5a5cc7de4b207bfcc58 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Fri, 17 May 2013 13:39:55 +0200 Subject: curvetun: 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 --- curvetun.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/curvetun.c b/curvetun.c index de33a5f..eeb4de1 100644 --- a/curvetun.c +++ b/curvetun.c @@ -88,7 +88,7 @@ static void signal_handler(int number) } } -static void help(void) +static void __noreturn help(void) { printf("\ncurvetun %s, lightweight curve25519-based VPN/IP tunnel\n", VERSION_STRING); puts("http://www.netsniff-ng.org\n\n" @@ -130,7 +130,7 @@ static void help(void) die(); } -static void version(void) +static void __noreturn version(void) { printf("\ncurvetun %s, lightweight curve25519-based VPN/IP tunnel\n", VERSION_STRING); puts("http://www.netsniff-ng.org\n\n" -- cgit v1.2.3-54-g00ecf