mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-07-30 23:42:44 +03:00
tree-wide: use IN_SET macro (#6977)
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
6d0aa4db7b
commit
4c70109600
@ -307,7 +307,7 @@ enum nss_status _nss_resolve_gethostbyname3_r(
|
||||
if (af == AF_UNSPEC)
|
||||
af = AF_INET;
|
||||
|
||||
if (af != AF_INET && af != AF_INET6) {
|
||||
if (!IN_SET(af, AF_INET, AF_INET6)) {
|
||||
r = -EAFNOSUPPORT;
|
||||
goto fail;
|
||||
}
|
||||
|
Reference in New Issue
Block a user