diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2007-07-21 08:56:16 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2007-07-21 08:56:16 +0000 |
| commit | 6574e44f886740273676b6d73ef754385a36197f (patch) | |
| tree | c13b2c6f1bb178bc5adae67f47549ea6a86d7ec4 /src/AbstractCommand.h | |
| parent | cd6b6e359135f88afffbaa31c126489aa9813571 (diff) | |
2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Converted int's to in32_t. long long int's are also converted to
int64_t
Diffstat (limited to 'src/AbstractCommand.h')
| -rw-r--r-- | src/AbstractCommand.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/AbstractCommand.h b/src/AbstractCommand.h index 7e6bcd7a..89f1d975 100644 --- a/src/AbstractCommand.h +++ b/src/AbstractCommand.h @@ -46,7 +46,7 @@ class AbstractCommand : public Command { private: Time checkPoint; - int timeout; + int32_t timeout; protected: RequestHandle req; RequestGroup* _requestGroup; @@ -55,7 +55,7 @@ protected: SegmentHandle segment; void tryReserved(); - virtual bool prepareForRetry(int wait); + virtual bool prepareForRetry(int32_t wait); virtual void onAbort(Exception* ex); virtual bool executeInternal() = 0; @@ -69,7 +69,7 @@ protected: void disableNameResolverCheck(const NameResolverHandle& resolver); virtual bool nameResolveFinished() const; #endif // ENABLE_ASYNC_DNS - void setTimeout(int timeout) { this->timeout = timeout; } + void setTimeout(int32_t timeout) { this->timeout = timeout; } private: bool checkSocketIsReadable; bool checkSocketIsWritable; @@ -77,7 +77,7 @@ private: SocketHandle writeCheckTarget; bool nameResolverCheck; public: - AbstractCommand(int cuid, const RequestHandle& req, RequestGroup* requestGroup, DownloadEngine* e, const SocketHandle& s = SocketHandle()); + AbstractCommand(int32_t cuid, const RequestHandle& req, RequestGroup* requestGroup, DownloadEngine* e, const SocketHandle& s = SocketHandle()); virtual ~AbstractCommand(); bool execute(); }; |
