summaryrefslogtreecommitdiffstats
path: root/openbsd
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 /openbsd
parentb85a31415e8d68d0d46a105b1033a92669224682 (diff)
Mark noreturn functions
Diffstat (limited to 'openbsd')
-rw-r--r--openbsd/OpenBSDCRT.c3
-rw-r--r--openbsd/OpenBSDCRT.h6
2 files changed, 6 insertions, 3 deletions
diff --git a/openbsd/OpenBSDCRT.c b/openbsd/OpenBSDCRT.c
index 233d30c9..8f026e3e 100644
--- a/openbsd/OpenBSDCRT.c
+++ b/openbsd/OpenBSDCRT.c
@@ -1,5 +1,5 @@
/*
-htop - UnsupportedCRT.c
+htop - OpenBSDCRT.c
(C) 2014 Hisham H. Muhammad
(C) 2015 Michael McConville
Released under the GNU GPL, see the COPYING file
@@ -7,6 +7,7 @@ in the source distribution for its full text.
*/
#include "config.h"
+#include "OpenBSDCRT.h"
#include "CRT.h"
#include <stdio.h>
#include <stdlib.h>
diff --git a/openbsd/OpenBSDCRT.h b/openbsd/OpenBSDCRT.h
index 85860a96..74535bee 100644
--- a/openbsd/OpenBSDCRT.h
+++ b/openbsd/OpenBSDCRT.h
@@ -1,13 +1,15 @@
#ifndef HEADER_OpenBSDCRT
#define HEADER_OpenBSDCRT
/*
-htop - UnsupportedCRT.h
+htop - OpenBSDCRT.h
(C) 2014 Hisham H. Muhammad
(C) 2015 Michael McConville
Released under the GNU GPL, see the COPYING file
in the source distribution for its full text.
*/
-void CRT_handleSIGSEGV(int sgn);
+#include "Macros.h"
+
+void CRT_handleSIGSEGV(int sgn) ATTR_NORETURN;
#endif

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