aboutsummaryrefslogtreecommitdiffstats
path: root/pbx
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-11-05 01:04:29 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-11-05 01:04:29 +0000
commit7fe9db16b5ccc8ad82618c2e52b5876ce4d5bf0a (patch)
tree75b2914db7b4d3f5112aeff1f4470827886a1ee0 /pbx
parentc6cc3e8d037ae96dc7f4d1ea6e6befe522329ec2 (diff)
Make pbx_dundi compile again. Sorry. :(
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47213 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx')
-rw-r--r--pbx/pbx_dundi.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/pbx/pbx_dundi.c b/pbx/pbx_dundi.c
index 5a0ca593a..87a13af53 100644
--- a/pbx/pbx_dundi.c
+++ b/pbx/pbx_dundi.c
@@ -4506,7 +4506,10 @@ static int unload_module(void)
static int reload(void)
{
struct sockaddr_in sin;
- set_config("dundi.conf",&sin);
+
+ if (set_config("dundi.conf", &sin))
+ return -1;
+
return 0;
}
@@ -4549,8 +4552,7 @@ static int load_module(void)
if (setsockopt(netsocket, IPPROTO_IP, IP_TOS, &tos, sizeof(tos)))
ast_log(LOG_WARNING, "Unable to set TOS to %d\n", tos);
- res = start_network_thread();
- if (res) {
+ if (start_network_thread()) {
ast_log(LOG_ERROR, "Unable to start network thread\n");
close(netsocket);
return AST_MODULE_LOAD_FAILURE;