]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
inet: Add hidden prototype for __inet_network
authorFlorian Weimer <fweimer@redhat.com>
Wed, 7 Jul 2021 16:33:52 +0000 (18:33 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Wed, 7 Jul 2021 16:33:52 +0000 (18:33 +0200)
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
include/arpa/inet.h
inet/inet_net.c

index 19aec74275069a450713722a857484d1a2588b09..df9472ba3bc526895337f8eddf9cc2b9a1269a10 100644 (file)
@@ -12,4 +12,6 @@ libc_hidden_proto (__inet_pton)
 extern __typeof (inet_makeaddr) __inet_makeaddr;
 libc_hidden_proto (__inet_makeaddr)
 libc_hidden_proto (inet_netof)
+extern __typeof (inet_network) __inet_network;
+libc_hidden_proto (__inet_network)
 #endif
index a0855e8bd24e9dc3e551476daa5b03579eac722b..b98634c33bc13b0c6eb144cbacff4d5d0415c338 100644 (file)
@@ -55,7 +55,7 @@
  * network numbers.
  */
 uint32_t
-inet_network (const char *cp)
+__inet_network (const char *cp)
 {
        uint32_t val, base, n, i;
        char c;
@@ -107,3 +107,5 @@ again:
        }
        return (val);
 }
+libc_hidden_def (__inet_network)
+weak_alias (__inet_network, inet_network)