summaryrefslogtreecommitdiff
path: root/channels/chan_zap.c
diff options
context:
space:
mode:
authorJason Parker <jparker@digium.com>2007-10-26 21:37:02 +0000
committerJason Parker <jparker@digium.com>2007-10-26 21:37:02 +0000
commitc472a68a8ac833f7c986ed04cbfa785d0f2a2da8 (patch)
treeb1108458720e17b700db0be4395b0272be1d3f92 /channels/chan_zap.c
parentc9f3efc3819c2939101b6fad9f659690c8a325a4 (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: https://origsvn.digium.com/svn/asterisk/trunk@87202 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_zap.c')
-rw-r--r--channels/chan_zap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c
index f38d86247..9428a4359 100644
--- a/channels/chan_zap.c
+++ b/channels/chan_zap.c
@@ -13070,7 +13070,7 @@ static int load_module(void)
if (ast_channel_register(&zap_tech)) {
ast_log(LOG_ERROR, "Unable to register channel class 'Zap'\n");
__unload_module();
- return -1;
+ return AST_MODULE_LOAD_FAILURE;
}
#ifdef HAVE_PRI
ast_string_field_init(&inuse, 16);