summaryrefslogtreecommitdiff
path: root/curvetun.c
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2013-05-17 13:39:55 +0200
committerTobias Klauser <tklauser@distanz.ch>2013-05-17 13:39:55 +0200
commit24a43b391b351c3f6f7de5a5cc7de4b207bfcc58 (patch)
treea809e792e0b097af9b64aef3324ada7d24345f32 /curvetun.c
parent5a6557633729dd5f5799c4d944797c95c7fe981a (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>
Diffstat (limited to 'curvetun.c')
-rw-r--r--curvetun.c4
1 files 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"