ipcfg_binary: Fix compiler warning

This commit is contained in:
David Sidrane 2020-10-15 08:46:28 -07:00 committed by Xiang Xiao
parent 71ce72a341
commit 9f9fed3232

View File

@ -228,7 +228,7 @@ static int ipcfg_find_binary(int fd, sa_family_t af)
return OK; return OK;
} }
else if (hdr.version != IPCFG_VERSION || else if (hdr.version != IPCFG_VERSION ||
hdr.type != AF_INET && hdr.type != AF_INET6) (hdr.type != AF_INET && hdr.type != AF_INET6))
{ {
return -EINVAL; return -EINVAL;
} }