[asterisk-commits] russell: trunk r89251 - /trunk/channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Nov 13 14:53:50 CST 2007


Author: russell
Date: Tue Nov 13 14:53:49 2007
New Revision: 89251

URL: http://svn.digium.com/view/asterisk?view=rev&rev=89251
Log:
- Convert initialization of a struct to C99 style instead of GNU style
- Fix a minor spelling error in a comment

Modified:
    trunk/channels/chan_sip.c

Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_sip.c?view=diff&rev=89251&r1=89250&r2=89251
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Tue Nov 13 14:53:49 2007
@@ -1863,12 +1863,12 @@
 
 /*! \brief Interface structure with callbacks used to connect to RTP module */
 static struct ast_rtp_protocol sip_rtp = {
-	type: "SIP",
-	get_rtp_info: sip_get_rtp_peer,
-	get_vrtp_info: sip_get_vrtp_peer,
-	get_trtp_info: sip_get_trtp_peer,
-	set_rtp_peer: sip_set_rtp_peer,
-	get_codec: sip_get_codec,
+	.type = "SIP",
+	.get_rtp_info = sip_get_rtp_peer,
+	.get_vrtp_info = sip_get_vrtp_peer,
+	.get_trtp_info = sip_get_trtp_peer,
+	.set_rtp_peer = sip_set_rtp_peer,
+	.get_codec = sip_get_codec,
 };
 
 #define sip_pvt_lock(x) ast_mutex_lock(&x->pvt_lock)
@@ -2119,7 +2119,7 @@
 		switch (errno) {
 			case EBADF: 		/* Bad file descriptor - seems like this is generated when the host exist, but doesn't accept the UDP packet */
 			case EHOSTUNREACH: 	/* Host can't be reached */
-			case ENETDOWN: 		/* Inteface down */
+			case ENETDOWN: 		/* Interface down */
 			case ENETUNREACH:	/* Network failure */
 				res = XMIT_ERROR;	/* Don't bother with trying to transmit again */
 		}




More information about the asterisk-commits mailing list