diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2013-05-17 13:38:05 +0200 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2013-05-17 13:38:05 +0200 |
commit | 2b0f29dfd02cd0d075a89d57b95764686e27e13b (patch) | |
tree | 8a1de708dab269ef6dc6ffc6a8c515e8ab80e483 | |
parent | 785fe152aad562addf1706ab6e6b00598b39bd2f (diff) |
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 <tklauser@distanz.ch>
-rw-r--r-- | astraceroute.c | 4 |
1 files 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" |