diff options
author | Philippe Mathieu-Daudé <philmd@redhat.com> | 2020-03-05 13:45:23 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-03-16 23:02:25 +0100 |
commit | 80e8c2ed1c4c3b77fe66ac64b7c3e9348d813e9a (patch) | |
tree | cf9a47b2716ee89a3e0fd907a44b223b02c1f2dd /ui/curses.c | |
parent | 092b6d1e885c27222a3ff929c56cb71d3f5df8ab (diff) |
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/curses.c')
-rw-r--r-- | ui/curses.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/curses.c b/ui/curses.c index 3a1b71451c..3bafc10c1c 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, |