aboutsummaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@redhat.com>2020-03-05 13:45:23 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2020-03-16 23:02:25 +0100
commit80e8c2ed1c4c3b77fe66ac64b7c3e9348d813e9a (patch)
treecf9a47b2716ee89a3e0fd907a44b223b02c1f2dd /ui
parent092b6d1e885c27222a3ff929c56cb71d3f5df8ab (diff)
downloadqemu-80e8c2ed1c4c3b77fe66ac64b7c3e9348d813e9a.zip
qemu-80e8c2ed1c4c3b77fe66ac64b7c3e9348d813e9a.tar.gz
qemu-80e8c2ed1c4c3b77fe66ac64b7c3e9348d813e9a.tar.bz2
ui/curses: Make control_characters[] array const
As we only use this array as input, make it const. Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> Reviewed-by: Stefano Garzarella <sgarzare@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'ui')
-rw-r--r--ui/curses.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/curses.c b/ui/curses.c
index 3a1b714..3bafc10 100644
--- a/ui/curses.c
+++ b/ui/curses.c
@@ -529,7 +529,7 @@ static void font_setup(void)
* Control characters are normally non-printable, but VGA does have
* well-known glyphs for them.
*/
- static uint16_t control_characters[0x20] = {
+ static const uint16_t control_characters[0x20] = {
0x0020,
0x263a,
0x263b,