summaryrefslogtreecommitdiff
path: root/ifpps.c
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2013-05-17 13:40:15 +0200
committerTobias Klauser <tklauser@distanz.ch>2013-05-17 13:40:15 +0200
commit069c5e3f64e24be5fbedf08cfaff3bc191a5cf91 (patch)
tree003c2c2603373444b07aa8937c41550ef5ec4d96 /ifpps.c
parent24a43b391b351c3f6f7de5a5cc7de4b207bfcc58 (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.c4
1 files changed, 2 insertions, 2 deletions
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);