[asterisk-commits] trunk r26952 - /trunk/rtp.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Thu May 11 08:25:22 MST 2006


Author: rizzo
Date: Thu May 11 10:25:21 2006
New Revision: 26952

URL: http://svn.digium.com/view/asterisk?rev=26952&view=rev
Log:
cast sockaddr_in to sockaddr because we need that.


Modified:
    trunk/rtp.c

Modified: trunk/rtp.c
URL: http://svn.digium.com/view/asterisk/trunk/rtp.c?rev=26952&r1=26951&r2=26952&view=diff
==============================================================================
--- trunk/rtp.c (original)
+++ trunk/rtp.c Thu May 11 10:25:21 2006
@@ -296,7 +296,8 @@
 
 static int stun_send(int s, struct sockaddr_in *dst, struct stun_header *resp)
 {
-	return sendto(s, resp, ntohs(resp->msglen) + sizeof(*resp), 0, dst, sizeof(*dst));
+	return sendto(s, resp, ntohs(resp->msglen) + sizeof(*resp), 0,
+		(struct sockaddr *)dst, sizeof(*dst));
 }
 
 static void stun_req_id(struct stun_header *req)



More information about the asterisk-commits mailing list