[1/2] posix: Handle success in gai_strerror()

Message ID 20230610071615.2136670-1-dridi.boukelmoune@gmail.com
State Superseded
Delegated to: Arjun Shankar
Headers
Series [1/2] posix: Handle success in gai_strerror() |

Checks

Context Check Description
redhat-pt-bot/TryBot-apply_patch success Patch applied to master at the time it was sent
linaro-tcwg-bot/tcwg_glibc_build--master-aarch64 success Testing passed
linaro-tcwg-bot/tcwg_glibc_build--master-arm success Testing passed
linaro-tcwg-bot/tcwg_glibc_check--master-aarch64 success Testing passed
linaro-tcwg-bot/tcwg_glibc_check--master-arm success Testing passed

Commit Message

Dridi Boukelmoune June 10, 2023, 7:16 a.m. UTC
  Signed-off-by: Dridi Boukelmoune <dridi.boukelmoune@gmail.com>
---
 sysdeps/posix/gai_strerror-strs.h | 1 +
 1 file changed, 1 insertion(+)
  

Comments

Arjun Shankar June 12, 2023, 5:06 p.m. UTC | #1
> Signed-off-by: Dridi Boukelmoune <dridi.boukelmoune@gmail.com>

Thanks for the patch! This looks good to me.

Reviewed-by: Arjun Shankar <arjun@redhat.com>

> ---
>  sysdeps/posix/gai_strerror-strs.h | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/sysdeps/posix/gai_strerror-strs.h b/sysdeps/posix/gai_strerror-strs.h
> index 667c4b2d4a..cb497ff5ea 100644
> --- a/sysdeps/posix/gai_strerror-strs.h
> +++ b/sysdeps/posix/gai_strerror-strs.h
> @@ -1,3 +1,4 @@
> +_S(0, N_("Success"))
>  _S(EAI_ADDRFAMILY, N_("Address family for hostname not supported"))
>  _S(EAI_AGAIN, N_("Temporary failure in name resolution"))
>  _S(EAI_BADFLAGS, N_("Bad value for ai_flags"))
> --
> 2.40.1
>
  

Patch

diff --git a/sysdeps/posix/gai_strerror-strs.h b/sysdeps/posix/gai_strerror-strs.h
index 667c4b2d4a..cb497ff5ea 100644
--- a/sysdeps/posix/gai_strerror-strs.h
+++ b/sysdeps/posix/gai_strerror-strs.h
@@ -1,3 +1,4 @@ 
+_S(0, N_("Success"))
 _S(EAI_ADDRFAMILY, N_("Address family for hostname not supported"))
 _S(EAI_AGAIN, N_("Temporary failure in name resolution"))
 _S(EAI_BADFLAGS, N_("Bad value for ai_flags"))