From: Amos Jeffries Date: Fri, 27 Feb 2015 12:12:32 +0000 (-0800) Subject: Portability: fix compile errors on ICC after rev.13954 X-Git-Tag: merge-candidate-3-v1~237 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=5aea71e783ab5c417325cc0a3d184267974db224;p=thirdparty%2Fsquid.git Portability: fix compile errors on ICC after rev.13954 "type qualifier on return type is meaningless" --- diff --git a/src/http/one/ResponseParser.cc b/src/http/one/ResponseParser.cc index 84996ab40f..094261743b 100644 --- a/src/http/one/ResponseParser.cc +++ b/src/http/one/ResponseParser.cc @@ -38,7 +38,7 @@ Http::One::ResponseParser::firstLineSize() const // NP: we found the protocol version and consumed it already. // just need the status code and reason phrase -const int +int Http::One::ResponseParser::parseResponseStatusAndReason(::Parser::Tokenizer &tok, const CharacterSet &WspDelim) { if (!completedStatus_) { @@ -110,7 +110,7 @@ Http::One::ResponseParser::parseResponseStatusAndReason(::Parser::Tokenizer &tok * \retval 1 successful parse. statusCode_ and maybe reasonPhrase_ are filled and buffer consumed including first delimiter. * \retval 0 more data is needed to complete the parse */ -const int +int Http::One::ResponseParser::parseResponseFirstLine() { ::Parser::Tokenizer tok(buf_); diff --git a/src/http/one/ResponseParser.h b/src/http/one/ResponseParser.h index 54cdf69ca2..9b141b04ce 100644 --- a/src/http/one/ResponseParser.h +++ b/src/http/one/ResponseParser.h @@ -34,8 +34,8 @@ public: SBuf reasonPhrase() const { return reasonPhrase_;} private: - const int parseResponseFirstLine(); - const int parseResponseStatusAndReason(::Parser::Tokenizer&, const CharacterSet &); + int parseResponseFirstLine(); + int parseResponseStatusAndReason(::Parser::Tokenizer&, const CharacterSet &); /// magic prefix for identifying ICY response messages static const SBuf IcyMagic;