diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2013-05-17 13:40:15 +0200 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2013-05-17 13:40:15 +0200 |
commit | 069c5e3f64e24be5fbedf08cfaff3bc191a5cf91 (patch) | |
tree | 003c2c2603373444b07aa8937c41550ef5ec4d96 /ifpps.c | |
parent | 24a43b391b351c3f6f7de5a5cc7de4b207bfcc58 (diff) |
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 <tklauser@distanz.ch>
Diffstat (limited to 'ifpps.c')
-rw-r--r-- | ifpps.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |