diff options
author | Igor Zhbanov <i.zhbanov@samsung.com> | 2012-07-18 13:17:25 +0400 |
---|---|---|
committer | Chris E Ferron <chris.e.ferron@linux.intel.com> | 2012-07-18 14:59:29 -0700 |
commit | 0957efe14f7877c4d90a8706e5e8b84e8a80c2d6 (patch) | |
tree | 2e15f6d7b24179c1edae048779c1cd26a4a989fe | |
parent | 59a66df791a975a39f9405b6ec65d8b7f06b8237 (diff) |
Get rid of ncurses' TRUE and FALSE
Get rid of TRUE and FALSE ncurses' defines used for boolean variables
initialization. This fix also helps build without ncurses support.
-rw-r--r-- | src/main.cpp | 6 | ||||
-rw-r--r-- | src/tuning/tuning.cpp | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/main.cpp b/src/main.cpp index 7a1b976..9f53b46 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -354,7 +354,7 @@ int main(int argc, char **argv) { int option_index; int c; - bool wantreport = FALSE; + bool wantreport = false; char filename[4096]; char workload[4096] = {0,}; int iterations = 1; @@ -396,7 +396,7 @@ int main(int argc, char **argv) break; case 'h': /* html report */ - wantreport = TRUE; + wantreport = true; reporttype = 1; sprintf(filename, "%s", optarg ? optarg : "PowerTOP.html" ); break; @@ -417,7 +417,7 @@ int main(int argc, char **argv) break; case 'C': /* csv report*/ - wantreport = TRUE; + wantreport = true; reporttype = 0; sprintf(filename, "%s", optarg ? optarg : "PowerTOP.csv"); break; diff --git a/src/tuning/tuning.cpp b/src/tuning/tuning.cpp index 1a90417..865d986 100644 --- a/src/tuning/tuning.cpp +++ b/src/tuning/tuning.cpp @@ -43,7 +43,7 @@ #include "../lib.h" static void sort_tunables(void); -static bool should_clear = FALSE; +static bool should_clear = false; #ifndef DISABLE_NCURSES class tuning_window: public tab_window { @@ -103,7 +103,7 @@ static void __tuning_update_display(int cursor_pos) return; if (should_clear) { - should_clear = FALSE; + should_clear = false; wclear(win); } @@ -185,7 +185,7 @@ static bool tunables_sort(class tunable * i, class tunable * j) void tuning_window::window_refresh() { clear_tuning(); - should_clear = TRUE; + should_clear = true; init_tuning(); } |