From: Olle Johansson Date: Mon, 7 May 2007 19:03:53 +0000 (+0000) Subject: Constifications X-Git-Tag: 1.6.0-beta1~3^2~2734 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0cc7c0640b951419d888c3339c81ecd36983a928;p=thirdparty%2Fasterisk.git Constifications git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@63240 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- 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;