From 2b0f29dfd02cd0d075a89d57b95764686e27e13b Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Fri, 17 May 2013 13:38:05 +0200 Subject: astraceroute: 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 --- astraceroute.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/astraceroute.c b/astraceroute.c index 453706a..a3d5d57 100644 --- a/astraceroute.c +++ b/astraceroute.c @@ -169,7 +169,7 @@ static void signal_handler(int number) } } -static void help(void) +static void __noreturn help(void) { printf("\nastraceroute %s, autonomous system trace route utility\n", VERSION_STRING); puts("http://www.netsniff-ng.org\n\n" @@ -229,7 +229,7 @@ static void help(void) die(); } -static void version(void) +static void __noreturn version(void) { printf("\nastraceroute %s, autonomous system trace route utility\n", VERSION_STRING); puts("http://www.netsniff-ng.org\n\n" -- cgit v1.2.3-54-g00ecf