qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PULL 28/61] ui/curses: Make control_characters[] array const


From: Paolo Bonzini
Subject: [PULL 28/61] ui/curses: Make control_characters[] array const
Date: Mon, 16 Mar 2020 22:26:55 +0100

From: Philippe Mathieu-Daudé <address@hidden>

As we only use this array as input, make it const.

Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
Reviewed-by: Stefano Garzarella <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>
---
 ui/curses.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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,
-- 
1.8.3.1





reply via email to

[Prev in Thread] Current Thread [Next in Thread]