summaryrefslogtreecommitdiffstats
path: root/CRT.c
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2008-03-09 08:58:38 +0000
committerHisham Muhammad <hisham@gobolinux.org>2008-03-09 08:58:38 +0000
commitda23c8c5a188324455c8f417293c10d85f65cb63 (patch)
treed7a4b8cb0af705de6650e20e00ba3da04d84b27f /CRT.c
parent12f4f09e6ed288bdedc86e4ef22f3cc34f0e787a (diff)
Clean up headers by using 'static' whenever possible.
Reduces resulting code size.
Diffstat (limited to 'CRT.c')
-rw-r--r--CRT.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/CRT.c b/CRT.c
index 7d2cc10b..942e2775 100644
--- a/CRT.c
+++ b/CRT.c
@@ -114,6 +114,17 @@ int CRT_colors[LAST_COLORELEMENT] = { 0 };
char* CRT_termType;
+static void CRT_handleSIGSEGV(int signal) {
+ CRT_done();
+ fprintf(stderr, "htop " VERSION " aborted. Please report bug at http://htop.sf.net\n");
+ exit(1);
+}
+
+static void CRT_handleSIGTERM(int signal) {
+ CRT_done();
+ exit(0);
+}
+
// TODO: pass an instance of Settings instead.
void CRT_init(int delay, int colorScheme) {
@@ -182,17 +193,6 @@ void CRT_enableDelay() {
halfdelay(CRT_delay);
}
-void CRT_handleSIGSEGV(int signal) {
- CRT_done();
- fprintf(stderr, "htop " VERSION " aborted. Please report bug at http://htop.sf.net\n");
- exit(1);
-}
-
-void CRT_handleSIGTERM(int signal) {
- CRT_done();
- exit(0);
-}
-
void CRT_setColors(int colorScheme) {
CRT_colorScheme = colorScheme;
if (colorScheme == COLORSCHEME_BLACKNIGHT) {

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