summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <ceffmpeg@gmail.com>2017-11-12 15:23:14 +0100
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>2017-11-18 17:40:18 +0100
commitc3b5ea753017d1acaecdbc4dc09dae16e53a9b91 (patch)
tree3f4b8d54a7847edbe2119e09f2c087c0b3626ef1
parent7c9f739d864c0ed8f1b433d6a7d9f674edda9cf5 (diff)
downloadffmpeg-streaming-c3b5ea753017d1acaecdbc4dc09dae16e53a9b91.zip
ffmpeg-streaming-c3b5ea753017d1acaecdbc4dc09dae16e53a9b91.tar.gz
lavf/tcp: Fix the type of the optlen argument to getsockopt().
Fixes a warning on aix: libavformat/tcp.c:283:58: warning: passing argument 5 of 'getsockopt' from incompatible pointer type
-rw-r--r--libavformat/tcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/tcp.c b/libavformat/tcp.c
index f3f9d4f..fef0729 100644
--- a/libavformat/tcp.c
+++ b/libavformat/tcp.c
@@ -275,7 +275,7 @@ static int tcp_get_window_size(URLContext *h)
{
TCPContext *s = h->priv_data;
int avail;
- int avail_len = sizeof(avail);
+ socklen_t avail_len = sizeof(avail);
#if HAVE_WINSOCK2_H
/* SO_RCVBUF with winsock only reports the actual TCP window size when
OpenPOWER on IntegriCloud