Skip to content

Commit

Permalink
Constify argument to LoadExtension
Browse files Browse the repository at this point in the history
Since we never modify it.

Signed-off-by: Daniel Stone <[email protected]>
Reviewed-by: Peter Hutterer <[email protected]>
  • Loading branch information
fooishbar committed Nov 21, 2012
1 parent 6a6c3af commit db83830
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/extension.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
2 changes: 1 addition & 1 deletion mi/miinitext.c
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ NewExtensionModule(void)
}

void
LoadExtension(ExtensionModule * e, Bool builtin)
LoadExtension(const ExtensionModule * e, Bool builtin)
{
ExtensionModule *newext;

Expand Down

0 comments on commit db83830

Please sign in to comment.