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

[Xen-devel] [PATCH 1/2] [Qemu] Make vnc name2keysym constant



Array is not used for writing. This save space at run time.

Signed-off-by: Frediano Ziglio <frediano.ziglio@xxxxxxxxxx>
---
 vnc_keysym.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vnc_keysym.h b/vnc_keysym.h
index 2f47365..ce355d8 100644
--- a/vnc_keysym.h
+++ b/vnc_keysym.h
@@ -2,7 +2,7 @@ typedef struct {
        const char* name;
        int keysym;
 } name2keysym_t;
-static name2keysym_t name2keysym[]={
+static const name2keysym_t name2keysym[]={
 /* ascii */
     { "space",                0x020},
     { "exclam",               0x021},
-- 
1.9.1


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.