diff --git a/include/asterisk/module.h b/include/asterisk/module.h index 0fe4ccf57c..075d6a376b 100644 --- a/include/asterisk/module.h +++ b/include/asterisk/module.h @@ -118,7 +118,7 @@ int ast_update_module_list(int (*modentry)(const char *module, const char *descr * \param name Module name, like "chan_sip.so" * \return 0 if false, 1 if true */ -int ast_module_check(char *name); +int ast_module_check(const char *name); /*! * \brief Add a procedure to be run when modules have been updated. diff --git a/main/loader.c b/main/loader.c index d9530f4d2e..53b557f111 100644 --- a/main/loader.c +++ b/main/loader.c @@ -891,7 +891,7 @@ int ast_update_module_list(int (*modentry)(const char *module, const char *descr } /*! \brief Check if module exists */ -int ast_module_check(char *name) +int ast_module_check(const char *name) { struct ast_module *cur;