[asterisk-commits] simon.perreault: branch group/v6-new r273322 - /team/group/v6-new/channels/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Jul 1 08:19:18 CDT 2010


Author: simon.perreault
Date: Thu Jul  1 08:19:14 2010
New Revision: 273322

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=273322
Log:
Fixed whitespace and braces.

Modified:
    team/group/v6-new/channels/chan_sip.c

Modified: team/group/v6-new/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/team/group/v6-new/channels/chan_sip.c?view=diff&rev=273322&r1=273321&r2=273322
==============================================================================
--- team/group/v6-new/channels/chan_sip.c (original)
+++ team/group/v6-new/channels/chan_sip.c Thu Jul  1 08:19:14 2010
@@ -26380,9 +26380,8 @@
 			if (ast_str2cos(v->value, &global_cos_text))
 				ast_log(LOG_WARNING, "Invalid cos_text value at line %d, refer to QoS documentation\n", v->lineno);
 		} else if (!strcasecmp(v->name, "bindport")) {
-            int i;
-            if (sscanf(v->value, "%5d", &bindport) != 1)
-                ast_log(LOG_WARNING, "Invalid port number '%s' at line %d of %s\n", v->value, v->lineno, config);
+			if (sscanf(v->value, "%5d", &bindport) != 1)
+				ast_log(LOG_WARNING, "Invalid port number '%s' at line %d of %s\n", v->value, v->lineno, config);
 		} else if (!strcasecmp(v->name, "qualify")) {
 			if (!strcasecmp(v->value, "no")) {
 				default_qualify = 0;
@@ -26601,13 +26600,15 @@
 	}
 
 	if (bindport) {
-		if (ast_sockaddr_port(&bindaddr))
-			ast_log(LOG_WARNING, "bindport is also specified in bindaddr. Using %d.\n", bindport);
+		if (ast_sockaddr_port(&bindaddr)) {
+			ast_log(LOG_WARNING, "bindport is also specified in bindaddr. "
+				"Using %d.\n", bindport);
+		}
 		ast_sockaddr_set_port(&bindaddr, bindport);
 	}
 
 	if (!ast_sockaddr_port(&bindaddr)) {
-			ast_sockaddr_set_port(&bindaddr, STANDARD_SIP_PORT);
+		ast_sockaddr_set_port(&bindaddr, STANDARD_SIP_PORT);
 	}
 
 	/* Set UDP address and open socket */




More information about the asterisk-commits mailing list