diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-06-25 00:07:15 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-06-25 00:07:15 +0900 |
| commit | 2761301dfb6e12fd229f65b49eb28391e49ca671 (patch) | |
| tree | ba79ac33a99e136bfd3ccedaa1928ec38cea416a /src/FtpConnection.cc | |
| parent | 2f6eff3821d11608215292792d0879efeeabe2e3 (diff) | |
Rewrite util::divide
Diffstat (limited to 'src/FtpConnection.cc')
| -rw-r--r-- | src/FtpConnection.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/FtpConnection.cc b/src/FtpConnection.cc index 49e1baa2..b17f26a4 100644 --- a/src/FtpConnection.cc +++ b/src/FtpConnection.cc @@ -403,8 +403,9 @@ int FtpConnection::receiveSizeResponse(int64_t& size) std::pair<int, std::string> response; if(bulkReceiveResponse(response)) { if(response.first == 213) { - std::pair<Sip, Sip> rp; - util::divide(rp, response.second.begin(), response.second.end(), ' '); + auto rp = util::divide(std::begin(response.second), + std::end(response.second), + ' '); if(!util::parseLLIntNoThrow(size, std::string(rp.second.first, rp.second.second)) || size < 0) { |
