]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix build with clang v15.0.6 [-Warray-parameter] (#1297)
authorgkinkie@gmail.com <kinkie@squid-cache.org>
Sat, 4 Mar 2023 16:08:26 +0000 (16:08 +0000)
committerAmos Jeffries <yadij@users.noreply.github.com>
Sat, 25 Mar 2023 00:51:28 +0000 (13:51 +1300)
Adapt a mismatching function signature in stub_libip.cc to the
corresponding declaration.

src/tests/stub_libip.cc

index e95d392f930af30cbd63309c5876d3aa70751949..0616767ddafafe076663c6c69ffce58cf9a012d8 100644 (file)
@@ -57,7 +57,7 @@ char* Ip::Address::toStr(char *, const unsigned int, int) const STUB_RETVAL(null
 char* Ip::Address::toUrl(char *, unsigned int) const STUB_RETVAL(nullptr)
 unsigned int Ip::Address::toHostStr(char *, const unsigned int) const STUB_RETVAL(0)
 bool Ip::Address::fromHost(const char *) STUB_RETVAL(false)
-bool Ip::Address::getReverseString(char [], int) const STUB_RETVAL(false)
+bool Ip::Address::getReverseString(char [MAX_IPSTRLEN], int) const STUB_RETVAL(false)
 int Ip::Address::matchIPAddr(const Ip::Address &) const STUB_RETVAL(0)
 int Ip::Address::compareWhole(const Ip::Address &) const STUB_RETVAL(0)
 void Ip::Address::getAddrInfo(struct addrinfo *&, int) const STUB