aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--display.c12
-rw-r--r--powerdebug.h1
2 files changed, 6 insertions, 7 deletions
diff --git a/display.c b/display.c
index 8ea796a..cf1d5d7 100644
--- a/display.c
+++ b/display.c
@@ -36,10 +36,6 @@ static char *win_names[TOTAL_FEATURE_WINS] = {
"Sensors"
};
-void fini_curses(void) {
- endwin();
-}
-
/* "all" : Kill header and footer windows too ? */
void killall_windows(int all)
{
@@ -65,6 +61,11 @@ void killall_windows(int all)
}
}
+static void display_fini(void)
+{
+ endwin();
+}
+
void display_init(void)
{
initscr();
@@ -85,10 +86,9 @@ void display_init(void)
init_pair(PT_COLOR_BLUE, COLOR_WHITE, COLOR_BLUE);
init_pair(PT_COLOR_RED, COLOR_WHITE, COLOR_RED);
- atexit(fini_curses);
+ atexit(display_fini);
}
-
void create_windows(int selectedwindow)
{
diff --git a/powerdebug.h b/powerdebug.h
index 29b1177..d8a40a9 100644
--- a/powerdebug.h
+++ b/powerdebug.h
@@ -47,7 +47,6 @@ extern void get_sensor_info(char *path, char *name, char *sensor, int verbose);
extern int read_and_print_sensor_info(int verbose);
extern void print_sensor_header(void);
-extern void fini_curses(void);
extern void killall_windows(int all);
extern void show_header(int selectedwindow);
extern void create_windows(int selectedwindow);