From: W.C.A. Wijngaards Date: Wed, 10 Jun 2026 14:43:41 +0000 (+0200) Subject: - Fix warnings with gcc in compat/inet_pton.c. X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=d45daaf313c789d487a88cf35c81a07f74caadf3;p=thirdparty%2Funbound.git - Fix warnings with gcc in compat/inet_pton.c. --- diff --git a/compat/inet_pton.c b/compat/inet_pton.c index 15780d0b7..6f863fabc 100644 --- a/compat/inet_pton.c +++ b/compat/inet_pton.c @@ -59,10 +59,7 @@ static int inet_pton6 (const char *src, uint8_t *dst); * Paul Vixie, 1996. */ int -inet_pton(af, src, dst) - int af; - const char *src; - void *dst; +inet_pton(int af, const char *src, void *dst) { switch (af) { case AF_INET: @@ -91,9 +88,7 @@ inet_pton(af, src, dst) * Paul Vixie, 1996. */ static int -inet_pton4(src, dst) - const char *src; - uint8_t *dst; +inet_pton4(const char *src, uint8_t *dst) { static const char digits[] = "0123456789"; int saw_digit, octets, ch; @@ -145,9 +140,7 @@ inet_pton4(src, dst) * Paul Vixie, 1996. */ static int -inet_pton6(src, dst) - const char *src; - uint8_t *dst; +inet_pton6(const char *src, uint8_t *dst) { static const char xdigits_l[] = "0123456789abcdef", xdigits_u[] = "0123456789ABCDEF"; diff --git a/doc/Changelog b/doc/Changelog index 8b1f2d1cd..9a9ccb80b 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,5 +1,6 @@ 10 June 2026: Wouter - Fix pythonmod script read for numeric overflow. + - Fix warnings with gcc in compat/inet_pton.c. 9 June 2026: Wouter - Fix unit test for ecs to check for malloc success.