projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
092b6d1
)
ui/curses: Make control_characters[] array const
author
Philippe Mathieu-Daudé
<philmd@redhat.com>
Thu, 5 Mar 2020 12:45:23 +0000
(13:45 +0100)
committer
Paolo Bonzini
<pbonzini@redhat.com>
Mon, 16 Mar 2020 22:02:25 +0000
(23:02 +0100)
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>
ui/curses.c
patch
|
blob
|
history
diff --git
a/ui/curses.c
b/ui/curses.c
index 3a1b71451c93f026dd3b2af2d8977599f597c37b..3bafc10c1ccc92303ad30d51e28cdb09c2873206 100644
(file)
--- 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,