Remove unsigned < 0 comparison.
This commit is contained in:
parent
f706f92681
commit
1d65bb9bd1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=257174
@ -220,7 +220,7 @@ ng_one2many_newhook(node_p node, hook_p hook, const char *name)
|
||||
if (!isdigit(*cp) || (cp[0] == '0' && cp[1] != '\0'))
|
||||
return (EINVAL);
|
||||
i = strtoul(cp, &eptr, 10);
|
||||
if (*eptr != '\0' || i < 0 || i >= NG_ONE2MANY_MAX_LINKS)
|
||||
if (*eptr != '\0' || i >= NG_ONE2MANY_MAX_LINKS)
|
||||
return (EINVAL);
|
||||
linkNum = (int)i;
|
||||
link = &priv->many[linkNum];
|
||||
|
Loading…
Reference in New Issue
Block a user