From 2939dd5f9d936b3cb8aa5c41a1d61821e01375f3 Mon Sep 17 00:00:00 2001 From: junky Date: Sat, 10 May 2008 03:28:50 +0000 Subject: ameliorate load and unload to dont use DECLINED or FAILED, when theres no .conf involved. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@115594 f38db490-d61c-443f-a65b-d21fe96a405b --- apps/app_skel.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'apps/app_skel.c') diff --git a/apps/app_skel.c b/apps/app_skel.c index 8365b506a..061f1e87c 100644 --- a/apps/app_skel.c +++ b/apps/app_skel.c @@ -109,17 +109,12 @@ static int app_exec(struct ast_channel *chan, void *data) static int unload_module(void) { - int res; - res = ast_unregister_application(app); - return res; + return ast_unregister_application(app); } static int load_module(void) { - if (ast_register_application(app, app_exec, synopsis, descrip)) - return AST_MODULE_LOAD_DECLINE; - - return AST_MODULE_LOAD_SUCCESS; + return ast_register_application(app, app_exec, synopsis, descrip); } AST_MODULE_INFO_STANDARD(ASTERISK_GPL_KEY, "Skeleton (sample) Application"); -- cgit v1.2.3