diff options
Diffstat (limited to 'funcs/func_math.c')
-rw-r--r-- | funcs/func_math.c | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/funcs/func_math.c b/funcs/func_math.c index c5b4bff0c..608135c53 100644 --- a/funcs/func_math.c +++ b/funcs/func_math.c @@ -247,27 +247,14 @@ static struct ast_custom_function math_function = { .read = math }; -static char *tdesc = "Mathematical dialplan function"; - -static int unload_module(void *mod) +static int unload_module(void) { return ast_custom_function_unregister(&math_function); } -static int load_module(void *mod) +static int load_module(void) { return ast_custom_function_register(&math_function); } -static const char *description(void) -{ - return tdesc; -} - -static const char *key(void) -{ - return ASTERISK_GPL_KEY; -} - -STD_MOD(MOD_1 | NO_USECOUNT, NULL, NULL, NULL); - +AST_MODULE_INFO_STANDARD(ASTERISK_GPL_KEY, "Mathematical dialplan function"); |