diff options
author | David Kalnischkies <kalnischkies@gmail.com> | 2012-03-04 23:58:23 +0100 |
---|---|---|
committer | David Kalnischkies <kalnischkies@gmail.com> | 2012-03-04 23:58:23 +0100 |
commit | cddbc86debef12020fd367588ffbc9947a83da60 (patch) | |
tree | 181d385c9d3c528703a9383e0296b237db9adf3d /methods/ftp.cc | |
parent | ce3c2407d9ac8cc5b45bda5f5991ac0fa89d1d98 (diff) | |
download | apt-cddbc86debef12020fd367588ffbc9947a83da60.tar.gz |
fix two "(style) Variable 'Res' is assigned a value that is never used"
Diffstat (limited to 'methods/ftp.cc')
-rw-r--r-- | methods/ftp.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/methods/ftp.cc b/methods/ftp.cc index 89c81f384..d55ac1224 100644 --- a/methods/ftp.cc +++ b/methods/ftp.cc @@ -622,8 +622,7 @@ bool FTPConn::ExtGoPasv() } // Get a new passive address. - int Res; - if ((Res = getaddrinfo(IP.c_str(),PStr,&Hints,&PasvAddr)) != 0) + if (getaddrinfo(IP.c_str(),PStr,&Hints,&PasvAddr) != 0) return true; return true; @@ -727,8 +726,7 @@ bool FTPConn::CreateDataFd() Hints.ai_socktype = SOCK_STREAM; Hints.ai_flags |= AI_PASSIVE; Hints.ai_family = ((struct sockaddr *)&ServerAddr)->sa_family; - int Res; - if ((Res = getaddrinfo(0,"0",&Hints,&BindAddr)) != 0 || BindAddr == NULL) + if (getaddrinfo(0,"0",&Hints,&BindAddr) != 0 || BindAddr == NULL) return _error->Error(_("getaddrinfo was unable to get a listening socket")); // Construct the socket |