vlc | branch: master | Thomas Guillem <[email protected]> | Wed Oct  2 11:01:03 
2019 +0200| [24d71b27f594cc7c8e1a83584732e98503389528] | committer: Thomas 
Guillem

amt: use socklen_t for recvfrom addrlen arg

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=24d71b27f594cc7c8e1a83584732e98503389528
---

 modules/access/amt.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/access/amt.c b/modules/access/amt.c
index 12331bb462..5139a435eb 100644
--- a/modules/access/amt.c
+++ b/modules/access/amt.c
@@ -648,7 +648,7 @@ static block_t *BlockAMT(stream_t *p_access, bool *restrict 
eof)
     else
     {
         struct sockaddr temp;
-        uint32_t temp_size = sizeof( struct sockaddr );
+        socklen_t temp_size = sizeof( struct sockaddr );
         len = recvfrom( sys->sAMT, &pkt, sys->mtu + tunnel, 0, (struct 
sockaddr*)&temp, &temp_size );
     }
 
@@ -1167,7 +1167,7 @@ static bool amt_rcv_relay_adv( stream_t *p_access )
     }
 
     struct sockaddr temp;
-    uint32_t temp_size = sizeof( struct sockaddr );
+    socklen_t temp_size = sizeof( struct sockaddr );
     ssize_t len = recvfrom( sys->sAMT, &pkt, RELAY_ADV_MSG_LEN, 0, &temp, 
&temp_size );
 
     if (len < 0)

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to