[asterisk-commits] russell: trunk r47213 - /trunk/pbx/pbx_dundi.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Sat Nov 4 18:04:30 MST 2006
Author: russell
Date: Sat Nov 4 19:04:29 2006
New Revision: 47213
URL: http://svn.digium.com/view/asterisk?rev=47213&view=rev
Log:
Make pbx_dundi compile again. Sorry. :(
Modified:
trunk/pbx/pbx_dundi.c
Modified: trunk/pbx/pbx_dundi.c
URL: http://svn.digium.com/view/asterisk/trunk/pbx/pbx_dundi.c?rev=47213&r1=47212&r2=47213&view=diff
==============================================================================
--- trunk/pbx/pbx_dundi.c (original)
+++ trunk/pbx/pbx_dundi.c Sat Nov 4 19:04:29 2006
@@ -4506,7 +4506,10 @@
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 @@
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;
More information about the asterisk-commits
mailing list