]> git.sesse.net Git - ffmpeg/commitdiff
lavf/tcp: Fix the type of the optlen argument to getsockopt().
authorCarl Eugen Hoyos <ceffmpeg@gmail.com>
Sun, 12 Nov 2017 14:23:14 +0000 (15:23 +0100)
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>
Sat, 18 Nov 2017 16:40:18 +0000 (17:40 +0100)
Fixes a warning on aix:
libavformat/tcp.c:283:58: warning: passing argument 5 of 'getsockopt' from incompatible pointer type

libavformat/tcp.c

index f3f9d4f431b99b48d740b3015098ce9900602f87..fef0729da683bdd29ade1e656346be26ec355f20 100644 (file)
@@ -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