All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chris Ferron <chris.e.ferron at linux.intel.com>
To: powertop@lists.01.org
Subject: Re: [Powertop] [PATCH] Get rid of ncurses' TRUE and FALSE
Date: Wed, 18 Jul 2012 15:02:30 -0700	[thread overview]
Message-ID: <50073276.5030604@linux.intel.com> (raw)
In-Reply-To: 1342603045-25492-1-git-send-email-i.zhbanov@samsung.com

[-- Attachment #1: Type: text/plain, Size: 2159 bytes --]

On 07/18/2012 02:17 AM, Igor Zhbanov wrote:
> Get rid of TRUE and FALSE ncurses' defines used for boolean variables
> initialization. This fix also helps build without ncurses support.
> ---
>   src/main.cpp          |    6 +++---
>   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();
>   }
>   
Your patch has been merged
Thank You


             reply	other threads:[~2012-07-18 22:02 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-18 22:02 Chris Ferron [this message]
  -- strict thread matches above, loose matches on Subject: below --
2012-07-23 15:09 [Powertop] [PATCH] Get rid of ncurses' TRUE and FALSE Chris Ferron
2012-07-23 13:23 Arjan van de Ven
2012-07-23  7:48 Igor Zhbanov
2012-07-23  7:31 Magnus Fromreide
2012-07-23  6:32 Igor Zhbanov
2012-07-20 17:32 Chris Ferron
2012-07-20  7:06 Igor Zhbanov
2012-07-19 20:26 Arjan van de Ven
2012-07-19 20:20 Chris Ferron
2012-07-18 13:21 Igor Zhbanov
2012-07-18 13:11 Arjan van de Ven
2012-07-18  9:17 Igor Zhbanov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=50073276.5030604@linux.intel.com \
    --to=powertop@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.