diff mbox series

[1/7] inet: Add hidden prototype for __inet_network

Message ID 89e4e017f65a57daf546e41506aa87e3057f6436.1624961355.git.fweimer@redhat.com
State Committed
Commit c4ec8cab07615600dcff90efcc3676855fe84b6d
Delegated to: Adhemerval Zanella Netto
Headers show
Series nss_files move | expand

Checks

Context Check Description
dj/TryBot-apply_patch success Patch applied to master at the time it was sent

Commit Message

Florian Weimer June 29, 2021, 10:11 a.m. UTC
---
 include/arpa/inet.h | 2 ++
 inet/inet_net.c     | 4 +++-
 2 files changed, 5 insertions(+), 1 deletion(-)

Comments

Adhemerval Zanella July 7, 2021, 1:33 p.m. UTC | #1
LGTM, thanks.

Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>

On 29/06/2021 07:11, Florian Weimer via Libc-alpha wrote:
> ---
>  include/arpa/inet.h | 2 ++
>  inet/inet_net.c     | 4 +++-
>  2 files changed, 5 insertions(+), 1 deletion(-)
> 
> diff --git a/include/arpa/inet.h b/include/arpa/inet.h
> index 19aec74275..df9472ba3b 100644
> --- a/include/arpa/inet.h
> +++ b/include/arpa/inet.h
> @@ -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
> diff --git a/inet/inet_net.c b/inet/inet_net.c
> index a0855e8bd2..b98634c33b 100644
> --- a/inet/inet_net.c
> +++ b/inet/inet_net.c
> @@ -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)
>
diff mbox series

Patch

diff --git a/include/arpa/inet.h b/include/arpa/inet.h
index 19aec74275..df9472ba3b 100644
--- a/include/arpa/inet.h
+++ b/include/arpa/inet.h
@@ -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
diff --git a/inet/inet_net.c b/inet/inet_net.c
index a0855e8bd2..b98634c33b 100644
--- a/inet/inet_net.c
+++ b/inet/inet_net.c
@@ -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)