linux/tools/perf/util/ui
Cyrill Gorcunov a3da8e4513 perf, ui: Eliminate stack-smashing protection compiler complaint
The gcc complains about small auto-var strings being allocated from stack space.
Make them const to avoid this:

 | CC util/ui/util.o
 | cc1: warnings being treated as errors
 | util/ui/util.c: In function ‘ui__dialog_yesno’:
 | util/ui/util.c:108: error: not protecting function: no buffer at least 8 bytes long
 | make: *** [util/ui/util.o] Error 1

The real bug is in the newtWinChoice() ABI - but that's an
externality we cannot fix here, so we use this workaround.

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Acked-by: Frédéric Weisbecker <fweisbec@gmail.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
LKML-Reference: <20101106084724.GA5956@lenovo>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2010-11-10 09:04:32 +01:00
..
browsers perf ui browser: Don't use windows, slang is enough 2010-09-13 10:25:04 -03:00
browser.c perf tools: Remove direct slang.h include 2010-10-22 17:48:16 -02:00
browser.h perf ui browser: Add routines to compactly specify exit keys 2010-08-19 19:44:18 -03:00
helpline.c perf ui browser: Add ui_browser__show counterpart: __hide 2010-08-10 15:44:20 -03:00
helpline.h perf ui browser: Add ui_browser__show counterpart: __hide 2010-08-10 15:44:20 -03:00
libslang.h perf ui: Move annotate browser to util/ui/browsers/ 2010-08-10 16:09:41 -03:00
progress.c perf ui: Move ui_progress routines to separate file in util/ui/ 2010-08-10 16:09:14 -03:00
progress.h perf ui: Move ui_progress routines to separate file in util/ui/ 2010-08-10 16:09:14 -03:00
setup.c perf ui: Complete the breakdown of util/newt.c 2010-08-10 16:11:38 -03:00
util.c perf, ui: Eliminate stack-smashing protection compiler complaint 2010-11-10 09:04:32 +01:00
util.h perf ui: Complete the breakdown of util/newt.c 2010-08-10 16:11:38 -03:00