]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix warnings with gcc in compat/inet_pton.c.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Wed, 10 Jun 2026 14:43:41 +0000 (16:43 +0200)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Wed, 10 Jun 2026 14:43:41 +0000 (16:43 +0200)
compat/inet_pton.c
doc/Changelog

index 15780d0b7a17441990cfa89d8fba03260d737cc4..6f863fabceee088f03b0230d95e25ffdbcc7c25e 100644 (file)
@@ -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";
index 8b1f2d1cd1d74e115c2ad4029ef8a81ea2c81208..9a9ccb80bc879fd90e952b97045b7c7a2f167a8b 100644 (file)
@@ -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.