diff options
-rw-r--r-- | channels/chan_agent.c | 2 | ||||
-rw-r--r-- | channels/chan_dahdi.c | 2 | ||||
-rw-r--r-- | utils/astman.c | 1 |
3 files changed, 3 insertions, 2 deletions
diff --git a/channels/chan_agent.c b/channels/chan_agent.c index 36595a7b1..9d6e14a16 100644 --- a/channels/chan_agent.c +++ b/channels/chan_agent.c @@ -2483,7 +2483,7 @@ static int unload_module(void) /* First, take us out of the channel loop */ ast_channel_unregister(&agent_tech); /* Delete devicestate subscription */ - agent_devicestate_sub = ast_event_unsubscribe(agent_devicestate_sub); + ast_event_unsubscribe(agent_devicestate_sub); /* Unregister dialplan functions */ ast_custom_function_unregister(&agent_function); /* Unregister CLI commands */ diff --git a/channels/chan_dahdi.c b/channels/chan_dahdi.c index d8d57537f..1f4d27042 100644 --- a/channels/chan_dahdi.c +++ b/channels/chan_dahdi.c @@ -13512,7 +13512,7 @@ static void process_echocancel(struct dahdi_chan_conf *confp, const char *data, unsigned int param_count; unsigned int x; - if (!(param_count = ast_app_separate_args(parse, ',', params, ARRAY_LEN(params))) + if (!(param_count = ast_app_separate_args(parse, ',', params, ARRAY_LEN(params)))) return; memset(&confp->chan.echocancel, 0, sizeof(confp->chan.echocancel)); diff --git a/utils/astman.c b/utils/astman.c index 6c8d74291..3cfc27d81 100644 --- a/utils/astman.c +++ b/utils/astman.c @@ -41,6 +41,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") #include "asterisk/md5.h" #include "asterisk/linkedlists.h" +#define ARRAY_LEN(a) (sizeof(a) / sizeof(a[0])) #undef gethostbyname |