diff mbox series

[5/6] ui/curses: Make control_characters[] array const

Message ID 20200304221807.25212-6-philmd@redhat.com (mailing list archive)
State New, archived
Headers show
Series hw,ui: Reduce QEMU .rodata/.bss footprint | expand

Commit Message

Philippe Mathieu-Daudé March 4, 2020, 10:18 p.m. UTC
As we only use this array as input, make it const.

Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
---
 ui/curses.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

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,