tree-wide: use IN_SET macro (#6977)
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
6d0aa4db7b
commit
4c70109600
@@ -892,7 +892,7 @@ bool ifname_valid(const char *p) {
|
||||
if ((unsigned char) *p <= 32U)
|
||||
return false;
|
||||
|
||||
if (*p == ':' || *p == '/')
|
||||
if (IN_SET(*p, ':', '/'))
|
||||
return false;
|
||||
|
||||
numeric = numeric && (*p >= '0' && *p <= '9');
|
||||
|
||||
Reference in New Issue
Block a user