summaryrefslogtreecommitdiffstats
path: root/htop.c
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2020-09-08 14:28:15 +0200
committercgzones <cgzones@googlemail.com>2020-09-18 12:28:40 +0200
commite719a85994e0ba13ac107c49fd85d49495dfc6a2 (patch)
tree39296d78b23199697688e28ae4807a17760e6a19 /htop.c
parentb85a31415e8d68d0d46a105b1033a92669224682 (diff)
Mark noreturn functions
Diffstat (limited to 'htop.c')
-rw-r--r--htop.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/htop.c b/htop.c
index 941c6b83..a7b37acb 100644
--- a/htop.c
+++ b/htop.c
@@ -29,11 +29,13 @@ in the source distribution for its full text.
//#link m
+ATTR_NORETURN
static void printVersionFlag(void) {
fputs("htop " VERSION "\n", stdout);
exit(0);
}
+ATTR_NORETURN
static void printHelpFlag(void) {
fputs("htop " VERSION "\n"
"Released under the GNU GPL.\n\n"

© 2014-2024 Faster IT GmbH | imprint | privacy policy