From: Daniel Lezcano dlezcano@fr.ibm.com
Signed-off-by: Daniel Lezcano dlezcano@fr.ibm.com --- display.c | 5 +++++ powerdebug.c | 5 ----- powerdebug.h | 1 - 3 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/display.c b/display.c index 5cdf78a..fbdce80 100644 --- a/display.c +++ b/display.c @@ -31,6 +31,11 @@ static WINDOW *footer_win; int maxx, maxy; char footer_items[NUM_FOOTER_ITEMS][64];
+static char *win_names[TOTAL_FEATURE_WINS] = { + "Regulators", + "Clocks", + "Sensors" +};
void fini_curses(void) { endwin(); diff --git a/powerdebug.c b/powerdebug.c index 55b6bcf..37225a6 100644 --- a/powerdebug.c +++ b/powerdebug.c @@ -22,11 +22,6 @@ bool dump = false; int highlighted_row; int selectedwindow = -1;
-char *win_names[TOTAL_FEATURE_WINS] = { - "Regulators", - "Clocks", - "Sensors" }; - void usage(void) { printf("Usage: powerdebug [OPTIONS]\n"); diff --git a/powerdebug.h b/powerdebug.h index f23bbba..a8e7de2 100644 --- a/powerdebug.h +++ b/powerdebug.h @@ -31,7 +31,6 @@ enum {CLOCK_SELECTED = 1, REFRESH_WINDOW};
extern struct regulator_info *regulators_info;
-extern char *win_names[TOTAL_FEATURE_WINS]; extern int selectedwindow;
extern int numregulators;