Initial push
[termux-packages] / packages / apt / ftp-use-socklen_t.patch
CommitLineData
59f0d218
FF
1diff -u -r ../apt-0.9.16.1/methods/ftp.cc ./methods/ftp.cc
2--- ../apt-0.9.16.1/methods/ftp.cc 2014-03-15 17:23:45.000000000 +0100
3+++ ./methods/ftp.cc 2014-03-25 01:31:05.464677254 +0100
4@@ -711,7 +711,7 @@
5 if (WaitFd(DataFd,true,TimeOut) == false)
6 return _error->Error(_("Could not connect data socket, connection timed out"));
7 unsigned int Err;
8- unsigned int Len = sizeof(Err);
9+ socklen_t Len = sizeof(Err);
10 if (getsockopt(DataFd,SOL_SOCKET,SO_ERROR,&Err,&Len) != 0)
11 return _error->Errno("getsockopt",_("Failed"));
12 if (Err != 0)