diff options
Diffstat (limited to 'tools/perf/util/ui/util.c')
| -rw-r--r-- | tools/perf/util/ui/util.c | 5 | 
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/perf/util/ui/util.c b/tools/perf/util/ui/util.c index 9706d9d40279..056c69521a38 100644 --- a/tools/perf/util/ui/util.c +++ b/tools/perf/util/ui/util.c  | |||
| @@ -104,9 +104,10 @@ out_destroy_form: | |||
| 104 | return rc; | 104 | return rc; | 
| 105 | } | 105 | } | 
| 106 | 106 | ||
| 107 | static const char yes[] = "Yes", no[] = "No"; | ||
| 108 | |||
| 107 | bool ui__dialog_yesno(const char *msg) | 109 | bool ui__dialog_yesno(const char *msg) | 
| 108 | { | 110 | { | 
| 109 | /* newtWinChoice should really be accepting const char pointers... */ | 111 | /* newtWinChoice should really be accepting const char pointers... */ | 
| 110 | char yes[] = "Yes", no[] = "No"; | 112 | return newtWinChoice(NULL, (char *)yes, (char *)no, (char *)msg) == 1; | 
| 111 | return newtWinChoice(NULL, yes, no, (char *)msg) == 1; | ||
| 112 | } | 113 | } | 
