From: Russell Bryant Date: Sun, 5 Nov 2006 01:04:29 +0000 (+0000) Subject: Make pbx_dundi compile again. Sorry. :( X-Git-Tag: 1.6.0-beta1~3^2~4107 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=908b6ed6bc6d51f079373f6c557d565d99b8397f;p=thirdparty%2Fasterisk.git Make pbx_dundi compile again. Sorry. :( git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47213 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/pbx/pbx_dundi.c b/pbx/pbx_dundi.c index 5a0ca593ad..87a13af538 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;