[PATCH 1/3] Constify argument to LoadExtension

Daniel Stone daniel at fooishbar.org
Sun Nov 18 21:00:58 PST 2012


Since we never modify it.

Signed-off-by: Daniel Stone <daniel at fooishbar.org>
---
 include/extension.h |    2 +-
 mi/miinitext.c      |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/extension.h b/include/extension.h
index 0f55d90..acc6add 100644
--- a/include/extension.h
+++ b/include/extension.h
@@ -97,6 +97,6 @@ extern _X_EXPORT void InitExtensions(int argc, char **argv);
 
 extern _X_EXPORT void CloseDownExtensions(void);
 
-extern _X_EXPORT void LoadExtension(ExtensionModule *ext, Bool external);
+extern _X_EXPORT void LoadExtension(const ExtensionModule *ext, Bool external);
 
 #endif                          /* EXTENSION_H */
diff --git a/mi/miinitext.c b/mi/miinitext.c
index d175440..369da5e 100644
--- a/mi/miinitext.c
+++ b/mi/miinitext.c
@@ -365,7 +365,7 @@ NewExtensionModule(void)
 }
 
 void
-LoadExtension(ExtensionModule * e, Bool builtin)
+LoadExtension(const ExtensionModule * e, Bool builtin)
 {
     ExtensionModule *newext;
 
-- 
1.7.10.4



More information about the xorg-devel mailing list