support: Handle AF_LOCAL, AF_UNSPEC in support_format_address_family

This commit is contained in:
Florian Weimer 2019-02-01 14:04:02 +01:00
parent 395599f0cf
commit baef194387
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2019-02-01 Florian Weimer <fweimer@redhat.com>
* support/support_format_address_family.c
(support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
2019-02-01 Florian Weimer <fweimer@redhat.com>
* manual/socket.texi (Internet Address Formats): Clarify the byte

View File

@ -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);
}