]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Portability: fix compile errors on ICC after rev.13954
authorAmos Jeffries <squid3@treenet.co.nz>
Fri, 27 Feb 2015 12:12:32 +0000 (04:12 -0800)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 27 Feb 2015 12:12:32 +0000 (04:12 -0800)
"type qualifier on return type is meaningless"

src/http/one/ResponseParser.cc
src/http/one/ResponseParser.h

index 84996ab40f6ea53514d13a9c6bb9519fff9528ef..094261743b3f015e3476929abbc832d8aeb0cc00 100644 (file)
@@ -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_);
index 54cdf69ca2484ba8532abd33bc00e56fb5a33fe2..9b141b04ce33bc668e5ab6c1cabaf067fdbdf385 100644 (file)
@@ -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;