diff options
author | qwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-10-26 21:37:02 +0000 |
---|---|---|
committer | qwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-10-26 21:37:02 +0000 |
commit | ecd7ce6f4958a5f52e535fe873afd0cea9c4cb89 (patch) | |
tree | b1108458720e17b700db0be4395b0272be1d3f92 /channels/chan_features.c | |
parent | 15b76d347eae9ee3ad3a6664608796608d677013 (diff) |
Correctly use defined return values in (some) load_module functions.
(issue #11096)
Patches:
chan_agent.c.patch uploaded by eliel (license 64)
chan_local.c.patch uploaded by eliel (license 64)
chan_features.c.patch uploaded by eliel (license 64)
chan_zap.c.patch uploaded by eliel (license 64)
res_monitor.c.patch uploaded by eliel (license 64)
res_realtime.c.patch uploaded by eliel (license 64)
res_crypto.c.patch uploaded by eliel (license 64)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@87202 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_features.c')
-rw-r--r-- | channels/chan_features.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_features.c b/channels/chan_features.c index 4ef9d4125..27722d372 100644 --- a/channels/chan_features.c +++ b/channels/chan_features.c @@ -551,10 +551,10 @@ static int load_module(void) /* Make sure we can register our sip channel type */ if (ast_channel_register(&features_tech)) { ast_log(LOG_ERROR, "Unable to register channel class 'Feature'\n"); - return -1; + return AST_MODULE_LOAD_FAILURE; } ast_cli_register_multiple(cli_features, sizeof(cli_features) / sizeof(struct ast_cli_entry)); - return 0; + return AST_MODULE_LOAD_SUCCESS; } static int unload_module(void) |