diff options
author | Daniel Stone <daniel@fooishbar.org> | 2012-11-19 15:28:07 +1100 |
---|---|---|
committer | Daniel Stone <daniel@fooishbar.org> | 2012-11-21 11:13:55 +1100 |
commit | db83830eef38a86a471378121213162da180537d (patch) | |
tree | 67f207389a86379590038f830813f6f573fc91dc | |
parent | 6a6c3afe71ac82a93d9fd0034dd5bbdcf0eae1ea (diff) |
Constify argument to LoadExtension
Since we never modify it.
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r-- | include/extension.h | 2 | ||||
-rw-r--r-- | mi/miinitext.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/extension.h b/include/extension.h index 0f55d9038..acc6addb7 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 d17544097..369da5ede 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; |