diff --git a/src/stream_output/sdp.c b/src/stream_output/sdp.c
index 613b3ed5affb14c73dc9e7c423428f10785f652f..c57c6117fc34fd8cf4d64eec848060526bd38255 100644
--- a/src/stream_output/sdp.c
+++ b/src/stream_output/sdp.c
@@ -38,7 +38,7 @@
 #define MAXSDPADDRESS 47
 
 static
-char *AddressToSDP (const struct sockaddr *addr, socklen_t addrlen, char *buf)
+char *AddressToSDP (const struct sockaddr *addr, size_t addrlen, char *buf)
 {
     if (addrlen < offsetof (struct sockaddr, sa_family)
                  + sizeof (addr->sa_family))