This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] support: Handle AF_LOCAL, AF_UNSPEC in support_format_address_family
- From: Adhemerval Zanella <adhemerval dot zanella at linaro dot org>
- To: libc-alpha at sourceware dot org
- Date: Fri, 1 Feb 2019 09:55:41 -0200
- Subject: Re: [PATCH] support: Handle AF_LOCAL, AF_UNSPEC in support_format_address_family
- References: <87womkbta3.fsf@oldenburg2.str.redhat.com>
On 31/01/2019 16:01, Florian Weimer wrote:
> 2019-01-31 Florian Weimer <fweimer@redhat.com>
>
> * support/support_format_address_family.c
> (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
LGTM, thanks.
>
> diff --git a/support/support_format_address_family.c b/support/support_format_address_family.c
> index cc3fb868a0..8f439d5fc4 100644
> --- a/support/support_format_address_family.c
> +++ b/support/support_format_address_family.c
> @@ -29,6 +29,10 @@ support_format_address_family (int family)
> return xstrdup ("INET");
> case AF_INET6:
> return xstrdup ("INET6");
> + case AF_LOCAL:
> + return xstrdup ("LOCAL");
> + case AF_UNSPEC:
> + return xstrdup ("UNSPEC");
> default:
> return xasprintf ("<unknown address family %d>", family);
> }
>