--- pbx/pbx_lua.c (Asterisk 15.2) +++ pbx/pbx_lua.c (working copy) @@ -1651,3 +1650,0 @@ static int load_or_reload_lua_stuff(void - if (!res) { - ast_log(LOG_NOTICE, "Lua PBX Switch loaded.\n"); - } @@ -1663 +1659,0 @@ static int unload_module(void) - ast_log(LOG_NOTICE, "Lua PBX Switch unloaded.\n"); --- res/res_odbc.c (Asterisk 15.2) +++ res/res_odbc.c (working copy) @@ -994,3 +994,3 @@ static int reload(void) - return 0; + return AST_MODULE_RELOAD_SUCCESS; } @@ -1003,12 +1003,2 @@ static int unload_module(void) -/*! - * \brief Load the module - * - * Module loading including tests for configuration or dependencies. - * This function can return AST_MODULE_LOAD_FAILURE, AST_MODULE_LOAD_DECLINE, - * or AST_MODULE_LOAD_SUCCESS. If a dependency or environment variable fails - * tests return AST_MODULE_LOAD_FAILURE. If the module can not load the - * configuration file or other non-critical problem return - * AST_MODULE_LOAD_DECLINE. On success return AST_MODULE_LOAD_SUCCESS. - */ static int load_module(void) @@ -1020,4 +1010,3 @@ static int load_module(void) ast_cli_register_multiple(cli_odbc, ARRAY_LEN(cli_odbc)); - ast_log(LOG_NOTICE, "res_odbc loaded.\n"); - return 0; + return AST_MODULE_LOAD_SUCCESS; } --- res/res_curl.c (Asterisk 15.2) +++ res/res_curl.c (working copy) @@ -62,3 +62,2 @@ static int unload_module(void) if (ast_module_check(dependents[i])) { - ast_log(LOG_ERROR, "%s (dependent module) is still loaded. Cannot unload res_curl.so\n", dependents[i]); res = -1; @@ -75,15 +74,5 @@ static int unload_module(void) -/*! - * \brief Load the module - * - * Module loading including tests for configuration or dependencies. - * This function can return AST_MODULE_LOAD_FAILURE, AST_MODULE_LOAD_DECLINE, - * or AST_MODULE_LOAD_SUCCESS. If a dependency or environment variable fails - * tests return AST_MODULE_LOAD_FAILURE. If the module can not load the - * configuration file or other non-critical problem return - * AST_MODULE_LOAD_DECLINE. On success return AST_MODULE_LOAD_SUCCESS. - */ static int load_module(void) { - int res = 0; + int res = AST_MODULE_LOAD_SUCCESS;