diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2013-05-17 13:39:55 +0200 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2013-05-17 13:39:55 +0200 |
commit | 24a43b391b351c3f6f7de5a5cc7de4b207bfcc58 (patch) | |
tree | a809e792e0b097af9b64aef3324ada7d24345f32 | |
parent | 5a6557633729dd5f5799c4d944797c95c7fe981a (diff) |
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 <tklauser@distanz.ch>
-rw-r--r-- | curvetun.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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" |