summaryrefslogtreecommitdiff
path: root/apps/app_skel.c
diff options
context:
space:
mode:
authorClaude Patry <cpatry@gmail.com>2008-05-10 03:28:50 +0000
committerClaude Patry <cpatry@gmail.com>2008-05-10 03:28:50 +0000
commitdfe475cc595c0bd93a1692bc740bbce3ec91078a (patch)
treeae75d829dc1c8de003e650ea963b6ad03843e846 /apps/app_skel.c
parentdf1912cd4fe03dc97496d8b25cd1e81a8672c9ce (diff)
ameliorate load and unload to dont use DECLINED or FAILED, when theres no .conf involved.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@115594 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_skel.c')
-rw-r--r--apps/app_skel.c9
1 files changed, 2 insertions, 7 deletions
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");