[PATCH 3/5] miinitext: constify staticExtensions

Emil Velikov emil.l.velikov at gmail.com
Wed Feb 5 08:20:15 PST 2014


The array is readonly and should not be tampered with.

Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
---
 mi/miinitext.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mi/miinitext.c b/mi/miinitext.c
index 099ac42..ce2e4bc 100644
--- a/mi/miinitext.c
+++ b/mi/miinitext.c
@@ -234,7 +234,7 @@ EnableDisableExtensionError(const char *name, Bool enable)
 }
 
 /* List of built-in (statically linked) extensions */
-static ExtensionModule staticExtensions[] = {
+static const ExtensionModule staticExtensions[] = {
     {GEExtensionInit, "Generic Event Extension", &noGEExtension},
     {ShapeExtensionInit, "SHAPE", NULL},
 #ifdef MITSHM
-- 
1.8.5.2



More information about the xorg-devel mailing list