From 069c5e3f64e24be5fbedf08cfaff3bc191a5cf91 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Fri, 17 May 2013 13:40:15 +0200 Subject: ifpps: 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 --- ifpps.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ifpps.c') diff --git a/ifpps.c b/ifpps.c index eb95439..8cad4ed 100644 --- a/ifpps.c +++ b/ifpps.c @@ -93,7 +93,7 @@ static inline int iswireless(const struct ifstat *stats) return stats->wifi.bitrate > 0; } -static void help(void) +static void __noreturn help(void) { printf("\nifpps %s, top-like kernel networking and system statistics\n", VERSION_STRING); @@ -123,7 +123,7 @@ static void help(void) die(); } -static void version(void) +static void __noreturn version(void) { printf("\nifpps %s, top-like kernel networking and system statistics\n", VERSION_STRING); -- cgit v1.2.3-54-g00ecf