diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2006-03-31 16:15:23 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2006-03-31 16:15:23 +0000 |
| commit | fc2307d47c525fb87bbfb166cfd35a2a2c0e9f56 (patch) | |
| tree | a417b71c14bf58f03a181bcd84073f807ef3a3b4 /src/FtpConnection.h | |
| parent | 3d3363a544290906b577c43583908ca00b2b0b0f (diff) | |
* src/Util.cc (isPowerOf): New function.
* src/Util.h (isPowerOf): New function.
* src/PeerMessageUtil.cc (checkLength): Added a check for length
whether or not it is power of 2.
Diffstat (limited to 'src/FtpConnection.h')
| -rw-r--r-- | src/FtpConnection.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/FtpConnection.h b/src/FtpConnection.h index 7b5ec17e..7e37506a 100644 --- a/src/FtpConnection.h +++ b/src/FtpConnection.h @@ -42,8 +42,8 @@ private: string strbuf; - int getStatus(string response) const; - bool isEndOfResponse(int status, string response) const; + int getStatus(const string& response) const; + bool isEndOfResponse(int status, const string& response) const; bool bulkReceiveResponse(pair<int, string>& response); public: FtpConnection(int cuid, const Socket* socket, const Request* req, const Option* op, const Logger* logger); |
