[svn-commits] file: branch file/pimp_sip_media r380923 - /team/file/pimp_sip_media/res/

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Feb 5 19:07:56 CST 2013


Author: file
Date: Tue Feb  5 19:07:52 2013
New Revision: 380923

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=380923
Log:
Fix a lint error. The variable addrs_cnt was never used.

Modified:
    team/file/pimp_sip_media/res/res_sip_sdp_audio.c

Modified: team/file/pimp_sip_media/res/res_sip_sdp_audio.c
URL: http://svnview.digium.com/svn/asterisk/team/file/pimp_sip_media/res/res_sip_sdp_audio.c?view=diff&rev=380923&r1=380922&r2=380923
==============================================================================
--- team/file/pimp_sip_media/res/res_sip_sdp_audio.c (original)
+++ team/file/pimp_sip_media/res/res_sip_sdp_audio.c Tue Feb  5 19:07:52 2013
@@ -107,7 +107,6 @@
 /*! \brief Function which negotiates an incoming 'audio' stream */
 static int audio_negotiate_incoming_sdp_stream(struct ast_sip_session *session, const struct pjmedia_sdp_session *sdp, const struct pjmedia_sdp_media *stream)
 {
-	int addrs_cnt;
 	char host[NI_MAXHOST];
 	RAII_VAR(struct ast_sockaddr *, addrs, NULL, ast_free);
 
@@ -123,7 +122,7 @@
 	}
 
 	/* Ensure that the address provided is valid */
-	if ((addrs_cnt = ast_sockaddr_resolve(&addrs, host, PARSE_PORT_FORBID, AST_AF_UNSPEC)) <= 0) {
+	if (ast_sockaddr_resolve(&addrs, host, PARSE_PORT_FORBID, AST_AF_UNSPEC) <= 0) {
 		/* The provided host was actually invalid so we error out this negotiation */
 		return -1;
 	}




More information about the svn-commits mailing list