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/Request.cc | |
| 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/Request.cc')
| -rw-r--r-- | src/Request.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Request.cc b/src/Request.cc index ffc9455e..938c6186 100644 --- a/src/Request.cc +++ b/src/Request.cc @@ -95,7 +95,7 @@ bool Request::parseUrl(const string& url) { string::size_type hp = tempUrl.find("://"); if(hp == string::npos) return false; protocol = tempUrl.substr(0, hp); - int defPort; + int32_t defPort; if((defPort = FeatureConfig::getInstance()->getDefaultPort(protocol)) == 0) { return false; } @@ -109,7 +109,7 @@ bool Request::parseUrl(const string& url) { Util::split(hostAndPort, tempUrl.substr(hp, hep-hp), ':'); host = hostAndPort.first; if(hostAndPort.second != "") { - port = (int)strtol(hostAndPort.second.c_str(), NULL, 10); + port = strtol(hostAndPort.second.c_str(), NULL, 10); if(!(0 < port && port <= 65535)) { return false; } |
